mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-11-19 22:46:25 -05:00
handle all connection closed exceptions
This commit is contained in:
parent
09172415b0
commit
d577fb135e
1 changed files with 1 additions and 1 deletions
2
web.py
2
web.py
|
|
@ -133,7 +133,7 @@ class ReticulumWebChat:
|
|||
message = await client.recv()
|
||||
data = json.loads(message)
|
||||
await self.on_websocket_data_received(client, data)
|
||||
except websockets.ConnectionClosedOK:
|
||||
except (websockets.ConnectionClosed, websockets.ConnectionClosedOK, websockets.ConnectionClosedError):
|
||||
# client disconnected, we can stop looping
|
||||
break
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue