Skip to content

Commit 0932dbc

Browse files
More grace for graceful cleanup
1 parent 962b2eb commit 0932dbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/replit_river/v2/session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,8 @@ async def close(
418418
# ... message processor so it can exit cleanly
419419
self._process_messages.set()
420420

421-
# Wait a tick to permit the waiting tasks to shut down gracefully
422-
await asyncio.sleep(0.01)
421+
# Wait to permit the waiting tasks to shut down gracefully
422+
await asyncio.sleep(0.25)
423423

424424
await self._task_manager.cancel_all_tasks()
425425

0 commit comments

Comments
 (0)