From: Max Kellermann Date: Sun, 19 Mar 2017 11:47:53 +0000 (+0100) Subject: mpdclient: call mpdclient_lost_callback() after failed error recovery X-Git-Tag: v0.26~22 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3b7d3e2269094119c48b5a75d41b5c8066097cbd;p=ncmpc.git mpdclient: call mpdclient_lost_callback() after failed error recovery --- diff --git a/src/mpdclient.c b/src/mpdclient.c index 6e6dd99..a4e165e 100644 --- a/src/mpdclient.c +++ b/src/mpdclient.c @@ -141,8 +141,10 @@ mpdclient_handle_error(struct mpdclient *c) mpdclient_invoke_error_callback(error, mpd_connection_get_error_message(c->connection)); - if (!mpd_connection_clear_error(c->connection)) + if (!mpd_connection_clear_error(c->connection)) { mpdclient_disconnect(c); + mpdclient_lost_callback(); + } return false; }