We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d2a143 commit ce35c2aCopy full SHA for ce35c2a
1 file changed
librespot/core.py
@@ -1065,7 +1065,11 @@ def connect(self) -> None:
1065
acc.write_int(2 + 4 + len(client_hello_bytes))
1066
acc.write(client_hello_bytes)
1067
# Read APResponseMessage
1068
- ap_response_message_length = self.connection.read_int()
+ try:
1069
+ ap_response_message_length = self.connection.read_int()
1070
+ except struct.error:
1071
+ time.sleep(.1)
1072
1073
acc.write_int(ap_response_message_length)
1074
ap_response_message_bytes = self.connection.read(
1075
ap_response_message_length - 4)
0 commit comments