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 a894083 commit 434a241Copy full SHA for 434a241
src/replit_river/v2/session.py
@@ -473,6 +473,13 @@ async def close(self) -> None:
473
# already closing
474
return
475
self._state = SessionState.CLOSING
476
+
477
+ # We need to wake up all tasks waiting for connection to be established
478
+ assert not self._connection_condition.locked()
479
+ await self._connection_condition.acquire()
480
+ self._connection_condition.notify_all()
481
+ self._connection_condition.release()
482
483
await self._task_manager.cancel_all_tasks()
484
485
# TODO: unexpected_close should close stream differently here to
0 commit comments