1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-22 13:34:04 +03:00

More minor fixes

This commit is contained in:
Adolfo Gómez García 2015-02-27 17:30:34 +01:00
parent 4bb4987937
commit 2d942fbac7

View File

@ -258,18 +258,22 @@ class UDSSystemTray(QtGui.QSystemTrayIcon):
def quit(self):
logger.debug('Quit invoked')
if self.stopped is True:
return
if self.stopped is False:
self.stopped = True
try:
# If we close Client, send Logoff to Broker
self.ipc.sendLogout(operations.getCurrentUser())
self.timer.stop()
self.ipc.stop()
operations.loggoff()
except Exception:
# May we have lost connection with server, simply exit in that case
pass
try:
operations.loggoff() # Invoke log off
except Exception:
pass
self.app.quit()
if __name__ == '__main__':