Commit 1972df6
Pyrogram-Mod - Dev
fix(session): wait for reconnect before retrying on OSError
When the TCP handler is closed, invoke() retried immediately while
the restart was still pending, burning through all retries before
the session came back up. Now waits on is_started before each retry.
Closes #181 parent 6178df5 commit 1972df6
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
545 | | - | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
546 | 554 | | |
547 | 555 | | |
0 commit comments