diff --git a/telethon/network/mtprotosender.py b/telethon/network/mtprotosender.py index 7d8dfd13..16e00b18 100644 --- a/telethon/network/mtprotosender.py +++ b/telethon/network/mtprotosender.py @@ -386,7 +386,6 @@ class MTProtoSender: except asyncio.TimeoutError: continue except asyncio.CancelledError: - await self.disconnect() return except Exception as e: if isinstance(e, ConnectionError): @@ -426,7 +425,6 @@ class MTProtoSender: except asyncio.TimeoutError: continue except asyncio.CancelledError: - await self.disconnect() return except Exception as e: if isinstance(e, ConnectionError): @@ -470,7 +468,6 @@ class MTProtoSender: .format(e.invalid_constructor_id, e.remaining)) continue except asyncio.CancelledError: - await self.disconnect() return except Exception as e: __log__.exception('Unhandled exception while unpacking %s',e) @@ -479,7 +476,6 @@ class MTProtoSender: try: await self._process_message(message) except asyncio.CancelledError: - await self.disconnect() return except Exception as e: __log__.exception('Unhandled exception while '