mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 13:11:15 -07:00
Shutdown tray icons last
This commit is contained in:
parent
6710e42134
commit
f70f814c70
1 changed files with 5 additions and 5 deletions
|
@ -2211,11 +2211,6 @@ def shutdown(restart=False, update=False, checkout=False, reset=False):
|
|||
logger.info("Removing pidfile %s", PIDFILE)
|
||||
os.remove(PIDFILE)
|
||||
|
||||
if WIN_SYS_TRAY_ICON:
|
||||
WIN_SYS_TRAY_ICON.shutdown()
|
||||
elif MAC_SYS_TRAY_ICON:
|
||||
MAC_SYS_TRAY_ICON.shutdown()
|
||||
|
||||
if restart:
|
||||
logger.info("Tautulli is restarting...")
|
||||
|
||||
|
@ -2248,6 +2243,11 @@ def shutdown(restart=False, update=False, checkout=False, reset=False):
|
|||
|
||||
logger.shutdown()
|
||||
|
||||
if WIN_SYS_TRAY_ICON:
|
||||
WIN_SYS_TRAY_ICON.shutdown()
|
||||
elif MAC_SYS_TRAY_ICON:
|
||||
MAC_SYS_TRAY_ICON.shutdown()
|
||||
|
||||
os._exit(0)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue