This commit is contained in:
jcorporation
2018-07-16 23:36:01 +01:00
parent 1558a05ae4
commit 636ae99898
+1 -2
View File
@@ -394,9 +394,8 @@ void callback_mympd(struct mg_connection *nc, const struct mg_str msg)
mpd.conn_state = MPD_FAILURE;
}
if (n == 0) {
if (n == 0)
n = snprintf(mpd.buf, MAX_SIZE, "{\"type\": \"error\", \"data\": \"No response for cmd %s\"}", cmd);
}
if (is_websocket(nc)) {
#ifdef DEBUG