Check is schedulers running before shutdown

This commit is contained in:
JonnyWong16 2018-03-08 18:32:47 -08:00
commit a6bf78ed56

View file

@ -1621,7 +1621,10 @@ def upgrade():
def shutdown(restart=False, update=False, checkout=False):
cherrypy.engine.exit()
if SCHED.running:
SCHED.shutdown(wait=False)
if activity_handler.ACTIVITY_SCHED.running:
activity_handler.ACTIVITY_SCHED.shutdown(wait=False)
# Stop the notification threads