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:
parent
4bb4987937
commit
2d942fbac7
@ -258,18 +258,22 @@ class UDSSystemTray(QtGui.QSystemTrayIcon):
|
|||||||
|
|
||||||
def quit(self):
|
def quit(self):
|
||||||
logger.debug('Quit invoked')
|
logger.debug('Quit invoked')
|
||||||
if self.stopped is True:
|
if self.stopped is False:
|
||||||
return
|
self.stopped = True
|
||||||
self.stopped = True
|
try:
|
||||||
|
# If we close Client, send Logoff to Broker
|
||||||
|
self.ipc.sendLogout(operations.getCurrentUser())
|
||||||
|
self.timer.stop()
|
||||||
|
self.ipc.stop()
|
||||||
|
except Exception:
|
||||||
|
# May we have lost connection with server, simply exit in that case
|
||||||
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# If we close Client, send Logoff to Broker
|
operations.loggoff() # Invoke log off
|
||||||
self.ipc.sendLogout(operations.getCurrentUser())
|
|
||||||
self.timer.stop()
|
|
||||||
self.ipc.stop()
|
|
||||||
operations.loggoff()
|
|
||||||
except Exception:
|
except Exception:
|
||||||
# May we have lost connection with server, simply exit in that case
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
self.app.quit()
|
self.app.quit()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
Reference in New Issue
Block a user