From 7abcc9be25efce7a0848bb2ba79d6f142df0cee9 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Fri, 12 Oct 2018 16:07:59 +0200 Subject: irmd: Don't warn if server leaves The irmd would log a warning when a server application quits during an accept call, but this is just a normal event. This removes the warning log. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/irmd/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/irmd/main.c b/src/irmd/main.c index 78fcf7b5..d3f7a09e 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -2041,10 +2041,8 @@ static void * mainloop(void * o) pthread_cleanup_pop(true); pthread_cleanup_pop(false); - if (result == -EPIPE) { - log_warn("Peer closed socket."); + if (result == -EPIPE) goto fail; - } ret_msg->has_result = true; ret_msg->result = result; -- cgit v1.2.3