fix connection closed by server

master
tiptorrent development team 2021-09-26 16:47:38 +02:00
parent 3adc9338d1
commit 46f1e923db
1 changed files with 1 additions and 1 deletions

View File

@ -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;