Skip to content

Commit 0a31599

Browse files
authored
Add files via upload
1 parent 8690de8 commit 0a31599

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyrogram/session/session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(self):
4545

4646

4747
class Session:
48-
START_TIMEOUT = 2
48+
START_TIMEOUT = 5
4949
WAIT_TIMEOUT = 15
5050
SLEEP_THRESHOLD = 10
5151
MAX_RETRIES = 10
@@ -229,7 +229,7 @@ async def handle_packet(self, packet):
229229
raise SecurityCheckMismatch("The msg_id belongs to over 300 seconds in the past. "
230230
"Most likely the client time has to be synchronized.")
231231
except SecurityCheckMismatch as e:
232-
log.info("Discarding packet: %s", e)
232+
log.warning("Discarding packet: %s", e)
233233
await self.connection.close()
234234
return
235235
else:

0 commit comments

Comments
 (0)