aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/net.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/net.c b/lib/net.c
index 02354444..414c82a5 100644
--- a/lib/net.c
+++ b/lib/net.c
@@ -114,7 +114,10 @@ int pollinate(int in1, int in2, int out1, int out2, int timeout, int shutdown_ti
if (pollfds[i].revents & POLLIN) {
int len = read(pollfds[i].fd, libbuf, sizeof(libbuf));
if (len<1) pollfds[i].revents = POLLHUP;
- else xwrite(i ? out2 : out1, libbuf, len);
+ else {
+ xwrite(i ? out2 : out1, libbuf, len);
+ continue;
+ }
}
if (pollfds[i].revents & POLLHUP) {
// Close half-connection. This is needed for things like