mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Shield disconnected Future in the MTProtoSender instead
This commit is contained in:
@@ -214,7 +214,7 @@ class MTProtoSender:
|
||||
ends, either by user action or in the background.
|
||||
"""
|
||||
if self._disconnected is not None:
|
||||
return self._disconnected
|
||||
return asyncio.shield(self._disconnected, loop=self._loop)
|
||||
else:
|
||||
raise ConnectionError('Sender was never connected')
|
||||
|
||||
|
Reference in New Issue
Block a user