mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-20 13:23:24 -07:00
Check is schedulers running before shutdown
This commit is contained in:
parent
8dbb05931e
commit
a6bf78ed56
1 changed files with 5 additions and 2 deletions
|
@ -1621,7 +1621,10 @@ def upgrade():
|
||||||
|
|
||||||
def shutdown(restart=False, update=False, checkout=False):
|
def shutdown(restart=False, update=False, checkout=False):
|
||||||
cherrypy.engine.exit()
|
cherrypy.engine.exit()
|
||||||
|
|
||||||
|
if SCHED.running:
|
||||||
SCHED.shutdown(wait=False)
|
SCHED.shutdown(wait=False)
|
||||||
|
if activity_handler.ACTIVITY_SCHED.running:
|
||||||
activity_handler.ACTIVITY_SCHED.shutdown(wait=False)
|
activity_handler.ACTIVITY_SCHED.shutdown(wait=False)
|
||||||
|
|
||||||
# Stop the notification threads
|
# Stop the notification threads
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue