summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 753ef04..b2acc28 100644
--- a/src/main.c
+++ b/src/main.c
@@ -264,7 +264,7 @@ static void tip_client_read_cb(struct ev_loop *loop, struct ev_io *io, int event
}
ret = tip_client_recv(cli, events);
- if (ret < 0)
+ if (ret <= 0)
goto error;
cli->buf_len += ret;