mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 15:34:52 +00:00
Make the on_disconnect callback function a coroutine
This commit is contained in:
parent
5834e38f14
commit
81c8fca11c
1 changed files with 1 additions and 1 deletions
|
|
@ -197,7 +197,7 @@ class Session:
|
||||||
|
|
||||||
if self.client and callable(self.client.disconnect_handler):
|
if self.client and callable(self.client.disconnect_handler):
|
||||||
try:
|
try:
|
||||||
self.client.disconnect_handler(self.client)
|
await self.client.disconnect_handler(self.client)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log.error(e, exc_info=True)
|
log.error(e, exc_info=True)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue