mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Prevent double autoreconnect like #1112
This commit is contained in:
parent
0662ead33b
commit
436fb64289
|
@ -330,7 +330,7 @@ class MTProtoSender:
|
|||
|
||||
def _start_reconnect(self):
|
||||
"""Starts a reconnection in the background."""
|
||||
if self._user_connected:
|
||||
if self._user_connected and not self._reconnecting:
|
||||
self._loop.create_task(self._reconnect())
|
||||
|
||||
# Loops
|
||||
|
|
Loading…
Reference in New Issue
Block a user