Spaces:
Runtime error
Runtime error
Commit
·
a37042d
1
Parent(s):
c54f817
Update main.py
Browse files
main.py
CHANGED
@@ -84,7 +84,6 @@ async def websocket_endpoint(websocket: WebSocket):
|
|
84 |
|
85 |
except asyncio.TimeoutError:
|
86 |
print("WebSocket connection timed out")
|
87 |
-
await websocket.close(code=1000)
|
88 |
break
|
89 |
|
90 |
except WebSocketDisconnect:
|
@@ -96,4 +95,4 @@ async def websocket_endpoint(websocket: WebSocket):
|
|
96 |
|
97 |
finally:
|
98 |
print("WebSocket connection closed")
|
99 |
-
|
|
|
84 |
|
85 |
except asyncio.TimeoutError:
|
86 |
print("WebSocket connection timed out")
|
|
|
87 |
break
|
88 |
|
89 |
except WebSocketDisconnect:
|
|
|
95 |
|
96 |
finally:
|
97 |
print("WebSocket connection closed")
|
98 |
+
# Remove the explicit websocket.close() call here
|