mirror of
https://github.com/huashengdun/webssh.git
synced 2026-08-20 12:46:39 +00:00
Use self.loop
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user