Skip to content

Commit 6224836

Browse files
committed
Handle ConnectionResetError
1 parent 6a8442f commit 6224836

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

librespot/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,7 @@ def run(self) -> None:
16501650
format(util.bytes_to_hex(packet.cmd),
16511651
packet.payload))
16521652
continue
1653-
except RuntimeError as ex:
1653+
except (RuntimeError, ConnectionResetError) as ex:
16541654
if self.__running:
16551655
self.__session.logger.fatal(
16561656
"Failed reading packet! {}".format(ex))

0 commit comments

Comments
 (0)