pyrofork/pyrogram/session
Hitalo M. b8028541c9
fix(session): prevent task cancellation race condition in stop method
The fix properly cancels the recv_task and suppresses CancelledError when awaiting
it during session shutdown. This resolves the "read() called while another
coroutine is already waiting for incoming data" RuntimeError that occurred when
stopping sessions during reconnection attempts.

Signed-off-by: wulan17 <wulan17@komodos.id>
2025-06-07 20:52:34 +07:00
..
internals pyrofork: Cleanup codes 2025-03-29 00:25:16 +07:00
__init__.py pyrofork: Cleanup codes 2025-03-29 00:25:16 +07:00
auth.py Implement non-blocking TCP connection (KurimuzonAkuma/pyrogram#71) 2024-06-23 16:59:32 +07:00
session.py fix(session): prevent task cancellation race condition in stop method 2025-06-07 20:52:34 +07:00