Commit 756712c4 by Sheng

Use self.loop

parent 0aebb80c
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment