mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat(mpd): reset player state when connection drops
This commit is contained in:
parent
cd92b475ad
commit
22eccc2ac2
@ -234,6 +234,7 @@ void waybar::modules::MPD::checkErrors(mpd_connection* conn) {
|
||||
mpd_connection_clear_error(conn);
|
||||
connection_.reset();
|
||||
alternate_connection_.reset();
|
||||
state_ = MPD_STATE_UNKNOWN;
|
||||
return;
|
||||
default:
|
||||
auto error_message = mpd_connection_get_error_message(conn);
|
||||
|
Loading…
Reference in New Issue
Block a user