diff --git a/SickBeard.py b/SickBeard.py index ad2fb4ca..aa0a4c6b 100755 --- a/SickBeard.py +++ b/SickBeard.py @@ -60,6 +60,7 @@ from sickbeard import db from sickbeard.tv import TVShow from sickbeard import logger from sickbeard import webserveInit +from sickbeard import autoreload_shutdown from sickbeard.version import SICKBEARD_VERSION from sickbeard.databases.mainDB import MIN_DB_VERSION from sickbeard.databases.mainDB import MAX_DB_VERSION @@ -390,7 +391,7 @@ def main(): # autoreload. if sickbeard.AUTO_UPDATE: tornado.autoreload.start(io_loop) - tornado.autoreload.add_reload_hook(sickbeard.autoreload_shutdown) + tornado.autoreload.add_reload_hook(autoreload_shutdown) # start IOLoop. io_loop.start()