Skip to content

Commit ce8c242

Browse files
committed
Revert to triggering a reconnection when skipping invalid packets
1 parent b23e344 commit ce8c242

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pyrogram/session/session.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ async def handle_packet(self, packet):
190190
)
191191
except SecurityCheckMismatch as e:
192192
log.info(f"Discarding packet: {e}")
193+
await self.connection.close()
193194
return
194195

195196
messages = (

0 commit comments

Comments
 (0)