diff options
author | tiptorrent development team <tiptorrent@soleta.eu> | 2021-09-26 16:47:38 +0200 |
---|---|---|
committer | tiptorrent development team <tiptorrent@soleta.eu> | 2021-09-26 16:52:30 +0200 |
commit | 46f1e923dbf235310a76d497d43b9fba5316f2a2 (patch) | |
tree | 3d99f632b58f256bd6111b6971d974ff341c46e1 | |
parent | 3adc9338d1b68959453b46c36bf76a5e835cbd28 (diff) |
fix connection closed by server
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |