mirror of https://github.com/huashengdun/webssh
Browse Source
WsockHandler stores a weak reference to the ssh backend worker. The worker closes itself if the backend connection closes (e.g. the user exists the ssh session). That happens in parallel to the websocket handler processing messages, so it is possible for a message to arrive when the worker no longer has any strong references, leading to an exception being thrown. Handle this case by treating the None worker the same way we do invalid messages: by simply returning.pull/306/head
Kyle Larose
2 years ago
2 changed files with 25 additions and 0 deletions
Loading…
Reference in new issue