1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Fixed sickragetv/sickrage-issues#180 - this resolves redirect loops resulting from to many threads being open at once.

FIxed issues with threads increasing but never decreasing and staying within there assigned limits.
This commit is contained in:
echel0n 2014-12-19 14:08:33 -08:00
parent 2f4d3cfe3c
commit 0f4a539194

View File

@ -201,7 +201,8 @@ class WebHandler(BaseHandler):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
super(WebHandler, self).__init__(*args, **kwargs) super(WebHandler, self).__init__(*args, **kwargs)
self.io_loop = IOLoop.current() self.io_loop = IOLoop.current()
self.executor = ThreadPoolExecutor(50)
executor = ThreadPoolExecutor(50)
@coroutine @coroutine
@asynchronous @asynchronous