Remove websocket.close()

This commit is contained in:
grossmj
2024-03-16 16:00:27 +01:00
parent 03b491f7b1
commit 31c7fe88f1
4 changed files with 2 additions and 15 deletions

View File

@ -305,10 +305,6 @@ async def project_ws_notifications(
except WebSocketException as e:
log.warning(f"Error while sending to project event to WebSocket client: {e}")
finally:
try:
await websocket.close()
except OSError:
pass # ignore OSError: [Errno 107] Transport endpoint is not connected
if project.auto_close:
# To avoid trouble with client connecting disconnecting we sleep few seconds before checking
# if someone else is not connected