Merge branch 'develop' into asyncio

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

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: