Files
librespot-python/librespot
Christian Vanderwall a5db002f00 Fix issue with closing session (#200)
I was getting the following error after calling Session.close():

```
Exception in thread session-packet-receiver:
Traceback (most recent call last):
  File "librespot-python/librespot/crypto.py", line 58, in receive_encoded
    header_bytes = self.__receive_cipher.decrypt(connection.read(3))
                                                 ~~~~~~~~~~~~~~~^^^
  File "librespot-python/librespot/core.py", line 1889, in read
    return self.__socket.recv(length)
           ~~~~~~~~~~~~~~~~~~^^^^^^^^
OSError: [Errno 9] Bad file descriptor
```

Adding `OSError` to the try/except in `CipherPair.receive_encoded` fixes this issue, making
`CipherPair` raise a `RuntimeError` instead, which is properly handled by `Receiver`.
2025-03-31 14:58:38 -07:00
..
2023-11-11 21:52:07 +00:00
2022-06-28 20:55:10 +09:00
2023-05-17 06:58:32 +09:00
2021-09-12 12:58:24 +09:00
2024-04-21 09:56:52 +09:00
2021-09-12 04:58:42 +00:00
2023-01-03 10:22:23 +09:00
2021-12-25 15:49:19 +09:00
2022-07-12 07:42:25 +09:00
2021-09-14 10:48:20 +00:00