fix cleanup
Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
This commit is contained in:
parent
e763978b4a
commit
73556d37ec
1 changed files with 1 additions and 1 deletions
2
proxy.py
2
proxy.py
|
@ -29,7 +29,7 @@ async def handler(websocket):
|
||||||
print(f"Connection closed: {e}")
|
print(f"Connection closed: {e}")
|
||||||
finally:
|
finally:
|
||||||
# Unregister the client
|
# Unregister the client
|
||||||
connected_clients.remove(websocket)
|
connected_clients.get(websocket.request.path, set()).remove(websocket)
|
||||||
|
|
||||||
async def main():
|
async def main():
|
||||||
# Start the WebSocket server
|
# Start the WebSocket server
|
||||||
|
|
Loading…
Reference in a new issue