summaryrefslogtreecommitdiff
path: root/src/socket-proxy
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket-proxy')
-rw-r--r--src/socket-proxy/socket-proxyd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/socket-proxy/socket-proxyd.c b/src/socket-proxy/socket-proxyd.c
index 4eec79ecb5..054a27a71b 100644
--- a/src/socket-proxy/socket-proxyd.c
+++ b/src/socket-proxy/socket-proxyd.c
@@ -442,8 +442,10 @@ static int accept_cb(sd_event_source *s, int fd, uint32_t revents, void *userdat
r = do_accept(e, p, fd);
if (r == -EAGAIN || r == -EWOULDBLOCK)
break;
- if (r < 0)
+ if (r < 0) {
log_error("Error %d while trying to accept: %s", r, strerror(-r));
+ break;
+ }
}
/* Re-enable the watcher. */