mirror of https://github.com/huashengdun/webssh
Use self.loop
parent
0aebb80c78
commit
756712c468
2
main.py
2
main.py
|
@ -259,7 +259,7 @@ class IndexHandler(MixinHandler, tornado.web.RequestHandler):
|
||||||
else:
|
else:
|
||||||
worker_id = worker.id
|
worker_id = worker.id
|
||||||
workers[worker_id] = worker
|
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))
|
self.write(dict(id=worker_id, status=status))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue