outputs: clear possible error
This commit is contained in:
parent
0c3ded1cf3
commit
c3ddc8318b
1 changed files with 4 additions and 1 deletions
|
@ -465,7 +465,10 @@ int mpd_put_outputs(char *buffer, int names)
|
|||
mpd_output_get_id(out), mpd_output_get_enabled(out));
|
||||
mpd_output_free(out);
|
||||
}
|
||||
mpd_response_finish(mpd.conn);
|
||||
if (!mpd_response_finish(mpd.conn)) {
|
||||
mpd_connection_clear_error(mpd.conn);
|
||||
return NULL;
|
||||
}
|
||||
str += snprintf(str, strend-str, " }}");
|
||||
return str-buffer;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue