#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-378ad31fedc9
remotes/github/oglive
ramon 2016-07-05 11:46:05 +00:00
parent a237b680ad
commit 069826490c
1 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,6 @@ from opengnsys.loader import loadModules
trayIcon = None
def sigAtExit():
#logger.debug("Exec sigAtExit")
if trayIcon:
trayIcon.quit()
@ -290,11 +289,12 @@ class OGASystemTray(QtGui.QSystemTrayIcon):
try:
# If we close Client, send Logoff to Broker
self.ipc.sendLogout(operations.getCurrentUser())
time.sleep(1)
self.timer.stop()
self.ipc.stop()
except Exception:
# May we have lost connection with server, simply exit in that case
pass
# May we have lost connection with server, simply log and exit in that case
logger.exception("Got an exception processing quit")
try:
# operations.logoff() # Uncomment this after testing to logoff user