mirror of
https://github.com/SuperBFG7/ympd
synced 2025-10-28 04:17:40 +00:00
cleanup
This commit is contained in:
@@ -394,9 +394,8 @@ void callback_mympd(struct mg_connection *nc, const struct mg_str msg)
|
|||||||
mpd.conn_state = MPD_FAILURE;
|
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);
|
n = snprintf(mpd.buf, MAX_SIZE, "{\"type\": \"error\", \"data\": \"No response for cmd %s\"}", cmd);
|
||||||
}
|
|
||||||
|
|
||||||
if (is_websocket(nc)) {
|
if (is_websocket(nc)) {
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
|||||||
Reference in New Issue
Block a user