2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-09-05 08:45:13 +00:00

Make the on_disconnect callback function a coroutine

This commit is contained in:
Dan
2018-06-24 11:40:43 +02:00
parent 5834e38f14
commit 81c8fca11c

View File

@@ -197,7 +197,7 @@ class Session:
if self.client and callable(self.client.disconnect_handler):
try:
self.client.disconnect_handler(self.client)
await self.client.disconnect_handler(self.client)
except Exception as e:
log.error(e, exc_info=True)