Skip to content

Commit e2c914f

Browse files
authored
Merge pull request #300 from cvdub/fix-close
Fix issue with closing session (#200)
2 parents 603b510 + a5db002 commit e2c914f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

librespot/crypto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def receive_encoded(self, connection: Session.ConnectionHolder) -> Packet:
6565
if mac != expected_mac:
6666
raise RuntimeError()
6767
return Packet(cmd, payload_bytes)
68-
except IndexError:
68+
except (IndexError, OSError):
6969
raise RuntimeError("Failed to receive packet")
7070

7171

0 commit comments

Comments
 (0)