Skip to content

Commit

Permalink
Don't close the websocket
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenthebuilder committed May 6, 2024
1 parent e80dc5a commit 669804f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions replit_river/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ async def serve(self, websocket: WebSocketServerProtocol) -> None:
self._transport_options.session_disconnect_grace_ms / 1000,
)
except WebsocketClosedException:
# it is fine if the ws is closed during handshake, we just close the ws
await websocket.close()
# it is fine if the ws is closed during handshake, we just return
return
except Exception as e:
logging.error(
Expand Down

0 comments on commit 669804f

Please sign in to comment.