In case of a connection reset or protocol error we should destroy the
connection as well.
---
 src/input/ipa.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/input/ipa.c b/src/input/ipa.c
index 2441de4..c881b22 100644
--- a/src/input/ipa.c
+++ b/src/input/ipa.c
@@ -390,6 +390,7 @@ static void ipa_server_conn_read(struct ipa_server_conn 
*conn)
                if (errno == EPIPE || errno == ECONNRESET) {
                        LOGP(DLINP, LOGL_ERROR, "lost connection with 
server\n");
                }
+               ipa_server_conn_destroy(conn);
                return;
        } else if (ret == 0) {
                LOGP(DLINP, LOGL_ERROR, "connection closed with server\n");
-- 
1.7.6.1


Reply via email to