#718: Incluir espera para que OGAgent de Windows pueda enviar mensaje de logout.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4977 a21b9725-9963-47de-94b9-378ad31fedc9remotes/github/oglive
parent
a237b680ad
commit
069826490c
|
@ -56,7 +56,6 @@ from opengnsys.loader import loadModules
|
||||||
trayIcon = None
|
trayIcon = None
|
||||||
|
|
||||||
def sigAtExit():
|
def sigAtExit():
|
||||||
#logger.debug("Exec sigAtExit")
|
|
||||||
if trayIcon:
|
if trayIcon:
|
||||||
trayIcon.quit()
|
trayIcon.quit()
|
||||||
|
|
||||||
|
@ -290,11 +289,12 @@ class OGASystemTray(QtGui.QSystemTrayIcon):
|
||||||
try:
|
try:
|
||||||
# If we close Client, send Logoff to Broker
|
# If we close Client, send Logoff to Broker
|
||||||
self.ipc.sendLogout(operations.getCurrentUser())
|
self.ipc.sendLogout(operations.getCurrentUser())
|
||||||
|
time.sleep(1)
|
||||||
self.timer.stop()
|
self.timer.stop()
|
||||||
self.ipc.stop()
|
self.ipc.stop()
|
||||||
except Exception:
|
except Exception:
|
||||||
# May we have lost connection with server, simply exit in that case
|
# May we have lost connection with server, simply log and exit in that case
|
||||||
pass
|
logger.exception("Got an exception processing quit")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# operations.logoff() # Uncomment this after testing to logoff user
|
# operations.logoff() # Uncomment this after testing to logoff user
|
||||||
|
|
Loading…
Reference in New Issue