Break if MPD connection fails. (#491)

This commit is contained in:
Brenden Matthews 2018-05-12 22:57:11 -04:00 committed by GitHub
parent 95237ae4e0
commit 42e43435f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -185,6 +185,7 @@ void mpd_cb::work() {
conn = nullptr;
mpd_info.status = "MPD not responding";
break;
}
mpd_finishCommand(conn);
if ((conn == nullptr) || (conn->error != 0)) {