[GH-ISSUE #600] No sinc closed event when connection is lost. #376

Closed
opened 2026-02-27 19:30:18 +03:00 by kerem · 3 comments
Owner

Originally created by @aliher1911 on GitHub (Feb 11, 2021).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/600

I sometimes experience connection issues where librespot loses connection:
ERROR librespot_core::session] Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" }
and playback is stopped.

In that case sink closed event is not generated.
I'm using those events to power off speakers when there's no playback and turn them back on when sink start event arrives. So if connection drops, monitoring program keeps everything powered. It would be helpful to either send sink stop or some other event indicating that playback was stopped.

Originally created by @aliher1911 on GitHub (Feb 11, 2021). Original GitHub issue: https://github.com/librespot-org/librespot/issues/600 I sometimes experience connection issues where librespot loses connection: ERROR librespot_core::session] Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" } and playback is stopped. In that case sink closed event is not generated. I'm using those events to power off speakers when there's no playback and turn them back on when sink start event arrives. So if connection drops, monitoring program keeps everything powered. It would be helpful to either send sink stop or some other event indicating that playback was stopped.
kerem 2026-02-27 19:30:18 +03:00
Author
Owner

@sashahilton00 commented on GitHub (Feb 12, 2021):

Related to #134

<!-- gh-comment-id:777929375 --> @sashahilton00 commented on GitHub (Feb 12, 2021): Related to #134
Author
Owner

@roderickvd commented on GitHub (May 24, 2021):

Will be fixed when we get the new API in, which is factoring in reconnection support from the ground up.

<!-- gh-comment-id:847343741 --> @roderickvd commented on GitHub (May 24, 2021): Will be fixed when we get the new API in, which is factoring in reconnection support from the ground up.
Author
Owner

@roderickvd commented on GitHub (Jun 14, 2021):

Duplicate of #276.

<!-- gh-comment-id:860577327 --> @roderickvd commented on GitHub (Jun 14, 2021): Duplicate of #276.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#376
No description provided.