mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Make sure notification threads exit on shutdown
This commit is contained in:
parent
2c5d131019
commit
628cef11fa
2 changed files with 11 additions and 2 deletions
|
@ -1050,6 +1050,10 @@ def shutdown(restart=False, update=False, checkout=False):
|
|||
cherrypy.engine.exit()
|
||||
SCHED.shutdown(wait=False)
|
||||
|
||||
# Stop the notification threads
|
||||
for i in range(CONFIG.NOTIFICATION_THREADS):
|
||||
NOTIFY_QUEUE.put(None)
|
||||
|
||||
CONFIG.write()
|
||||
|
||||
if not restart and not update and not checkout:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue