From 22eccc2ac250e71ad14eaac1ca6179fa3d325628 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Thu, 18 Apr 2019 11:39:04 +0200 Subject: [PATCH] feat(mpd): reset player state when connection drops --- src/modules/mpd.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/mpd.cpp b/src/modules/mpd.cpp index 246be9f9..0313e129 100644 --- a/src/modules/mpd.cpp +++ b/src/modules/mpd.cpp @@ -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);