mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Fix disconnect handler callback being called on every session
This commit is contained in:
parent
fa7b7d0ce3
commit
c7d60ef8a6
1 changed files with 1 additions and 1 deletions
|
|
@ -197,7 +197,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:
|
||||
self.client.disconnect_handler(self.client)
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Reference in a new issue