reconnect task: dont clear event in the wrong place
This commit is contained in:
parent
7a8d5da0e8
commit
5ec7810063
1 changed files with 0 additions and 1 deletions
|
@ -348,7 +348,6 @@ class Network:
|
||||||
await self._keepalive_task
|
await self._keepalive_task
|
||||||
if self._urgent_need_reconnect.is_set():
|
if self._urgent_need_reconnect.is_set():
|
||||||
log.warning("urgent reconnect needed")
|
log.warning("urgent reconnect needed")
|
||||||
self._urgent_need_reconnect.clear()
|
|
||||||
if self._keepalive_task and not self._keepalive_task.done():
|
if self._keepalive_task and not self._keepalive_task.done():
|
||||||
self._keepalive_task.cancel()
|
self._keepalive_task.cancel()
|
||||||
except asyncio.CancelledError:
|
except asyncio.CancelledError:
|
||||||
|
|
Loading…
Add table
Reference in a new issue