pyrofork/pyrogram
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
..
connection Revert "fix: handle connection closure and retry logic in session management" 2025-05-18 19:57:20 +07:00
crypto pyrofork: Cleanup codes 2025-03-29 00:25:16 +07:00
enums pyrofork: Cleanup codes 2025-03-29 00:25:16 +07:00
errors pyrofork: moar cleanups 2025-04-03 22:31:37 +07:00
handlers pyrofork: Cleanup codes 2025-03-29 00:25:16 +07:00
helpers pyrofork: Cleanup codes 2025-03-29 00:25:16 +07:00
methods pyrofork: Drop accept_terms_of_service and sign_up method 2025-05-18 19:57:19 +07:00
nav pyrofork: Cleanup codes 2025-03-29 00:25:16 +07:00
parser pyrofork: Cleanup codes 2025-03-29 00:25:16 +07:00
raw pyrofork: Cleanup codes 2025-03-29 00:25:16 +07:00
session fix(session): prevent task cancellation race condition in stop method 2025-06-07 20:52:34 +07:00
storage pyrofork: Cleanup codes 2025-03-29 00:25:16 +07:00
types Update Gift class: add ton_address and clarify owner info. 2025-06-06 19:08:43 +07:00
__init__.py pyrofork: Bump version to 2.3.64 2025-06-06 19:10:08 +07:00
client.py pyrofork: set Client.hide_password default value to True 2025-05-18 19:57:20 +07:00
dispatcher.py Fix: Register RawUpdateHandler and Refactor Dispatcher for Better Modularity. 2025-06-06 19:08:42 +07:00
emoji.py Pyrofork: Update Copyright headers 2024-02-07 20:25:08 +07:00
file_id.py Pyrofork: Update Copyright headers 2024-02-07 20:25:08 +07:00
filters.py pyrofork: filters: Add support for fragments usernames 2025-06-06 19:08:40 +07:00
mime_types.py Pyrofork: Update Copyright headers 2024-02-07 20:25:08 +07:00
py.typed Add py.typed file for enhanced type hinting (#838) 2022-01-29 13:39:25 +01:00
sync.py Pyrofork: Update Copyright headers 2024-02-07 20:25:08 +07:00
utils.py pyrofork: fix MESSAGE_IDS_EMPTY error on get_scheduled_messages method 2025-05-18 19:57:05 +07:00