We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e629d52 commit 3931e80Copy full SHA for 3931e80
src/replit_river/v2/session.py
@@ -20,6 +20,7 @@
20
)
21
22
import nanoid
23
+from websockets import ConnectionClosedOK
24
import websockets.asyncio.client
25
from aiochannel import Channel, ChannelEmpty, ChannelFull
26
from aiochannel.errors import ChannelClosed
@@ -1184,6 +1185,9 @@ async def websocket_closed_callback() -> None:
1184
1185
1186
try:
1187
data = await ws.recv(decode=False)
1188
+ except ConnectionClosedOK as e:
1189
+ close_session(e)
1190
+ continue
1191
except ConnectionClosed as e:
1192
logger.debug(
1193
"_do_ensure_connected: Connection closed during waiting "
0 commit comments