mirror of
https://github.com/SuperBFG7/ympd
synced 2024-12-27 11:20:26 +00:00
cleanup
This commit is contained in:
parent
1558a05ae4
commit
636ae99898
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user