Use self.loop

pull/12/head
Sheng 2018-04-05 14:10:31 +08:00
parent 0aebb80c78
commit 756712c468
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ class IndexHandler(MixinHandler, tornado.web.RequestHandler):
else:
worker_id = worker.id
workers[worker_id] = worker
IOLoop.current().call_later(DELAY, recycle, worker)
self.loop.call_later(DELAY, recycle, worker)
self.write(dict(id=worker_id, status=status))