1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-12-26 19:10:25 +00:00
This commit is contained in:
jcorporation 2018-07-16 23:36:01 +01:00
parent 1558a05ae4
commit 636ae99898

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