Removed try block since this bug already fixed by tornado

pull/75/head
Sheng 2019-07-04 22:29:59 +08:00
parent 5bbf0408ce
commit 5719f24295
1 changed files with 1 additions and 4 deletions

View File

@ -431,10 +431,7 @@ class WsockHandler(MixinHandler, tornado.websocket.WebSocketHandler):
worker = workers.get(worker_id)
if worker:
workers[worker_id] = None
try:
self.set_nodelay(True)
except AssertionError: # tornado 6.00 bug
pass
self.set_nodelay(True)
worker.set_handler(self)
self.worker_ref = weakref.ref(worker)
self.loop.add_handler(worker.fd, worker, IOLoop.READ)