mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 04:49:36 -07:00
Don't shutdown for Windows installer update
This commit is contained in:
parent
0d9c1c640e
commit
b54210480f
1 changed files with 10 additions and 7 deletions
|
@ -2278,9 +2278,11 @@ def upgrade():
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
def shutdown(restart=False, update=False, checkout=False, reset=False):
|
def shutdown(restart=False, update=False, checkout=False, reset=False,
|
||||||
|
_shutdown=True):
|
||||||
if FROZEN and common.PLATFORM == 'Windows' and update:
|
if FROZEN and common.PLATFORM == 'Windows' and update:
|
||||||
restart = False
|
restart = False
|
||||||
|
_shutdown = False
|
||||||
|
|
||||||
webstart.stop()
|
webstart.stop()
|
||||||
|
|
||||||
|
@ -2354,14 +2356,15 @@ def shutdown(restart=False, update=False, checkout=False, reset=False):
|
||||||
else:
|
else:
|
||||||
logger.info("Tautulli is shutting down...")
|
logger.info("Tautulli is shutting down...")
|
||||||
|
|
||||||
logger.shutdown()
|
if _shutdown:
|
||||||
|
logger.shutdown()
|
||||||
|
|
||||||
if WIN_SYS_TRAY_ICON:
|
if WIN_SYS_TRAY_ICON:
|
||||||
WIN_SYS_TRAY_ICON.shutdown()
|
WIN_SYS_TRAY_ICON.shutdown()
|
||||||
elif MAC_SYS_TRAY_ICON:
|
elif MAC_SYS_TRAY_ICON:
|
||||||
MAC_SYS_TRAY_ICON.shutdown()
|
MAC_SYS_TRAY_ICON.shutdown()
|
||||||
|
|
||||||
os._exit(0)
|
os._exit(0)
|
||||||
|
|
||||||
|
|
||||||
def generate_uuid():
|
def generate_uuid():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue