mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 00:05:55 +03:00
[GH-ISSUE #1627] Librespot stops working when switching networks #742
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#742
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zappolowski on GitHub (Nov 8, 2025).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1627
Description
Switching networks does not fully reconnect, leaves librespot unusable.
Version
Tested with latest dev (
84a3302168at the time of writing).How to reproduce
Steps to reproduce the behavior in librespot e.g.
librespotwith any flags you likeLog
full log
Host (what you are running
librespoton):Additional context
I additionally noticed, that it seems to corrupt the inner state somehow as graceful shutdown doesn't work as intended anymore. In the logs you can see, that I had to hit
^Ctwice to finally get it to shutdown. Even after the first one the app continued to send pings and also playback continues. Furthermore, the official client still considers librespot to be the active client until the song ends or e.g. next is triggered.I think, it's related to
and the
TODOatgithub.com/librespot-org/librespot@84a3302168/core/src/session.rs (L932)but wasn't able to debug further.This might be the same issue as reported in #1492.