Skip to content

Commit

Permalink
Handle ConnectionResetError
Browse files Browse the repository at this point in the history
  • Loading branch information
kokarare1212 committed Apr 12, 2023
1 parent 6a8442f commit 6224836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librespot/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1650,7 +1650,7 @@ def run(self) -> None:
format(util.bytes_to_hex(packet.cmd),
packet.payload))
continue
except RuntimeError as ex:
except (RuntimeError, ConnectionResetError) as ex:
if self.__running:
self.__session.logger.fatal(
"Failed reading packet! {}".format(ex))
Expand Down

0 comments on commit 6224836

Please sign in to comment.