From 069826490c0b29b582215703f95a1f90da524d4d Mon Sep 17 00:00:00 2001 From: ramon Date: Tue, 5 Jul 2016 11:46:05 +0000 Subject: [PATCH] #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 --- src/OGAgentUser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OGAgentUser.py b/src/OGAgentUser.py index 6a800c9..363486b 100644 --- a/src/OGAgentUser.py +++ b/src/OGAgentUser.py @@ -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