diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index 9f249f13..11c85f01 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -204,8 +204,8 @@ class WebHandler(BaseHandler): def __init__(self, *args, **kwargs): super(WebHandler, self).__init__(*args, **kwargs) - io_loop = IOLoop.current() - executor = ThreadPoolExecutor(50) + self.io_loop = IOLoop.current() + self.executor = ThreadPoolExecutor(50) @coroutine @asynchronous diff --git a/sickbeard/webserveInit.py b/sickbeard/webserveInit.py index 8d154dcf..dfc582fb 100644 --- a/sickbeard/webserveInit.py +++ b/sickbeard/webserveInit.py @@ -7,7 +7,7 @@ from sickbeard.webserve import LoginHandler, LogoutHandler, KeyHandler from sickbeard.webapi import ApiHandler from sickbeard import logger from sickbeard.helpers import create_https_certificates, generateApiKey -from tornado.web import Application, StaticFileHandler, HTTPError, RedirectHandler +from tornado.web import Application, StaticFileHandler, RedirectHandler from tornado.httpserver import HTTPServer from tornado.ioloop import IOLoop from tornado.routes import route