ocd
This commit is contained in:
parent
a8240c8df3
commit
f7ec83c8d5
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue