Prevent double autoreconnect like #1112

This commit is contained in:
Lonami Exo 2019-03-22 16:21:18 +01:00
parent 0662ead33b
commit 436fb64289

View File

@ -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