From 46f1e923dbf235310a76d497d43b9fba5316f2a2 Mon Sep 17 00:00:00 2001 From: tiptorrent development team Date: Sun, 26 Sep 2021 16:47:38 +0200 Subject: fix connection closed by server --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-18-g5258