mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-29 12:53:44 +03:00
95cf873bad
The idea behind distinguishing between the user being connected and the actual connection having been made was to support retries while the user decided to connect, even if the connection wasn't made yet. The problem is that _user_connected is used directly to tell whether the sender is connected or not which will be wrong if an exception occurs on the initial connection. Since the logic retry isn't used there we can simply mark as connected once a successfull connection is made. |
||
---|---|---|
.. | ||
connection | ||
__init__.py | ||
authenticator.py | ||
mtprotoplainsender.py | ||
mtprotosender.py | ||
mtprotostate.py | ||
requeststate.py |