Periodically send ping/getState

This commit is contained in:
Lonami Exo
2018-06-18 13:22:25 +02:00
parent 94d6c339c4
commit 374f5e2aab
4 changed files with 42 additions and 1 deletions

View File

@@ -384,7 +384,6 @@ class MTProtoSender:
__log__.debug('Receiving items from the network...')
body = await self._connection.recv()
except asyncio.TimeoutError:
# TODO If nothing is received for a minute, send a request
continue
except Exception as e:
if isinstance(e, ConnectionError):