mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-22 18:07:21 +00:00
Revert to triggering a reconnection when skipping invalid packets
This commit is contained in:
parent
b23e34494e
commit
ce8c242eb4
@ -190,6 +190,7 @@ class Session:
|
|||||||
)
|
)
|
||||||
except SecurityCheckMismatch as e:
|
except SecurityCheckMismatch as e:
|
||||||
log.info(f"Discarding packet: {e}")
|
log.info(f"Discarding packet: {e}")
|
||||||
|
await self.connection.close()
|
||||||
return
|
return
|
||||||
|
|
||||||
messages = (
|
messages = (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user