Break if MPD connection fails. (#491)
This commit is contained in:
@@ -185,6 +185,7 @@ void mpd_cb::work() {
|
|||||||
conn = nullptr;
|
conn = nullptr;
|
||||||
|
|
||||||
mpd_info.status = "MPD not responding";
|
mpd_info.status = "MPD not responding";
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
mpd_finishCommand(conn);
|
mpd_finishCommand(conn);
|
||||||
if ((conn == nullptr) || (conn->error != 0)) {
|
if ((conn == nullptr) || (conn->error != 0)) {
|
||||||
|
Reference in New Issue
Block a user