Fixed sickragetv/sickrage-issues#119 - IOLoop was being loaded before daemonizer code due to improper placement in WebHandler class, moved to init.

This commit is contained in:
echel0n 2014-12-17 17:05:05 -08:00
parent 7b219fce8f
commit ced8785269
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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