Merge pull request #300 from cvdub/fix-close
Fix issue with closing session (#200)
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user