feat(mpd): reset player state when connection drops

This commit is contained in:
Minijackson 2019-04-18 11:39:04 +02:00
parent cd92b475ad
commit 22eccc2ac2
No known key found for this signature in database
GPG Key ID: FEA888C9F5D64F62

View File

@ -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);