Merge pull request #300 from cvdub/fix-close

Fix issue with closing session (#200)
This commit is contained in:
碧舞すみほ
2025-04-01 10:00:14 +09:00
committed by GitHub

View File

@@ -65,7 +65,7 @@ class CipherPair:
if mac != expected_mac:
raise RuntimeError()
return Packet(cmd, payload_bytes)
except IndexError:
except (IndexError, OSError):
raise RuntimeError("Failed to receive packet")