2
0
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:
Dan 2022-12-25 15:14:12 +01:00
parent b23e34494e
commit ce8c242eb4

View File

@ -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 = (