mirror of https://github.com/huashengdun/webssh
Close websocket if there is no corresponding ssh connection
parent
9a7cfe767c
commit
2a46b52eac
|
@ -566,7 +566,13 @@ class WsockHandler(MixinHandler, tornado.websocket.WebSocketHandler):
|
|||
*self.src_addr
|
||||
)
|
||||
)
|
||||
self.close(reason='No worker found')
|
||||
return
|
||||
|
||||
if worker.closed:
|
||||
self.close(reason='Worker closed')
|
||||
return
|
||||
|
||||
try:
|
||||
msg = json.loads(message)
|
||||
except JSONDecodeError:
|
||||
|
|
Loading…
Reference in New Issue