Fix for autoreload issues

This commit is contained in:
echel0n 2014-06-16 17:48:22 -07:00
parent 2ac1c5fdd5
commit 09297b853b

View file

@ -60,6 +60,7 @@ from sickbeard import db
from sickbeard.tv import TVShow from sickbeard.tv import TVShow
from sickbeard import logger from sickbeard import logger
from sickbeard import webserveInit from sickbeard import webserveInit
from sickbeard import autoreload_shutdown
from sickbeard.version import SICKBEARD_VERSION from sickbeard.version import SICKBEARD_VERSION
from sickbeard.databases.mainDB import MIN_DB_VERSION from sickbeard.databases.mainDB import MIN_DB_VERSION
from sickbeard.databases.mainDB import MAX_DB_VERSION from sickbeard.databases.mainDB import MAX_DB_VERSION
@ -390,7 +391,7 @@ def main():
# autoreload. # autoreload.
if sickbeard.AUTO_UPDATE: if sickbeard.AUTO_UPDATE:
tornado.autoreload.start(io_loop) tornado.autoreload.start(io_loop)
tornado.autoreload.add_reload_hook(sickbeard.autoreload_shutdown) tornado.autoreload.add_reload_hook(autoreload_shutdown)
# start IOLoop. # start IOLoop.
io_loop.start() io_loop.start()