mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-18 11:06:39 +00: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):
|
def _start_reconnect(self):
|
||||||
"""Starts a reconnection in the background."""
|
"""Starts a reconnection in the background."""
|
||||||
if self._user_connected:
|
if self._user_connected and not self._reconnecting:
|
||||||
self._loop.create_task(self._reconnect())
|
self._loop.create_task(self._reconnect())
|
||||||
|
|
||||||
# Loops
|
# Loops
|
||||||
|
Loading…
Reference in New Issue
Block a user