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:
@@ -178,9 +178,7 @@ class UpdateMethods(UserMethods):
|
||||
while self.is_connected():
|
||||
try:
|
||||
await asyncio.wait_for(
|
||||
asyncio.shield(self.disconnected, loop=self._loop),
|
||||
timeout=60,
|
||||
loop=self._loop
|
||||
self.disconnected, timeout=60, loop=self._loop
|
||||
)
|
||||
continue # We actually just want to act upon timeout
|
||||
except asyncio.TimeoutError:
|
||||
|
Reference in New Issue
Block a user