mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-03 15:55:37 +00:00
Small fixes
This commit is contained in:
@@ -286,8 +286,7 @@ class Session:
|
||||
await asyncio.wait_for(self.ping_task_event.wait(), self.PING_INTERVAL)
|
||||
except asyncio.TimeoutError:
|
||||
pass
|
||||
|
||||
if self.ping_task_event.is_set():
|
||||
else:
|
||||
break
|
||||
|
||||
try:
|
||||
@@ -320,8 +319,7 @@ class Session:
|
||||
await asyncio.wait_for(self.next_salt_task_event.wait(), dt)
|
||||
except asyncio.TimeoutError:
|
||||
pass
|
||||
|
||||
if self.next_salt_task_event.is_set():
|
||||
else:
|
||||
break
|
||||
|
||||
try:
|
||||
|
Reference in New Issue
Block a user