mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-18 13:34:54 +00:00
Make the on_disconnect callback function a coroutine
This commit is contained in:
parent
5834e38f14
commit
81c8fca11c
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user