2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-09-05 16:55:20 +00:00

Merge branch 'develop' into asyncio

This commit is contained in:
Dan
2018-06-24 19:29:31 +02:00

View File

@@ -181,7 +181,7 @@ class Session:
for i in self.results.values():
i.event.set()
if self.client and callable(self.client.disconnect_handler):
if not self.is_media and callable(self.client.disconnect_handler):
try:
await self.client.disconnect_handler(self.client)
except Exception as e: