This commit is contained in:
əlemi 2021-11-20 04:59:23 +01:00
parent a8240c8df3
commit f7ec83c8d5

View file

@ -87,7 +87,7 @@ class Client:
try: try:
await func(packet) await func(packet)
except Exception as e: except Exception as e:
self._logger.error("Exception in callback %s for packet %s | %s", func.__name__, str(packet), str(e)) self._logger.error("Exception in callback %s for packet %s | %s", func.__name__, packet, str(e))
self._callbacks.pop(key, None) self._callbacks.pop(key, None)
self._callbacks[key] = asyncio.get_event_loop().create_task(wrapper(pkt)) self._callbacks[key] = asyncio.get_event_loop().create_task(wrapper(pkt))