socket-proxyd: Fix-up from previous change to avoid looping on errors.

This commit is contained in:
David Strauss
2013-10-21 18:41:35 -07:00
parent 9bcbce4201
commit f4bd42aa3c
+3 -1
View File
@@ -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. */