Use self.loop

This commit is contained in:
Sheng
2018-04-05 14:10:31 +08:00
parent 0aebb80c78
commit 756712c468
+1 -1
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))