mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-04 22:34:52 +00:00
Small fixes
This commit is contained in:
parent
68133e8be5
commit
775cbb568f
1 changed files with 2 additions and 4 deletions
|
|
@ -286,8 +286,7 @@ class Session:
|
||||||
await asyncio.wait_for(self.ping_task_event.wait(), self.PING_INTERVAL)
|
await asyncio.wait_for(self.ping_task_event.wait(), self.PING_INTERVAL)
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
pass
|
pass
|
||||||
|
else:
|
||||||
if self.ping_task_event.is_set():
|
|
||||||
break
|
break
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
@ -320,8 +319,7 @@ class Session:
|
||||||
await asyncio.wait_for(self.next_salt_task_event.wait(), dt)
|
await asyncio.wait_for(self.next_salt_task_event.wait(), dt)
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
pass
|
pass
|
||||||
|
else:
|
||||||
if self.next_salt_task_event.is_set():
|
|
||||||
break
|
break
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue