reconnect task: dont clear event in the wrong place

This commit is contained in:
Victor Shyba 2022-05-26 10:09:22 -03:00
parent 7a8d5da0e8
commit 5ec7810063

View file

@ -348,7 +348,6 @@ class Network:
await self._keepalive_task
if self._urgent_need_reconnect.is_set():
log.warning("urgent reconnect needed")
self._urgent_need_reconnect.clear()
if self._keepalive_task and not self._keepalive_task.done():
self._keepalive_task.cancel()
except asyncio.CancelledError: