Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eyMarv authored Jul 14, 2024
1 parent d99ab71 commit aa56e92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrogram/session/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ async def restart(self):
self.last_reconnect_attempt
and now - self.last_reconnect_attempt < self.RECONNECT_THRESHOLD
):
to_wait = self.RECONNECT_THRESHOLD - (now - self.last_reconnect_attempt)
to_wait = self.RECONNECT_WAIT - (now - self.last_reconnect_attempt)
log.warning(
f"[pyroblack] Client [{self.client.name}] is reconnecting too frequently, sleeping for {to_wait} seconds"
)
Expand Down

0 comments on commit aa56e92

Please sign in to comment.