From 6b47735b55df4c6ce34c534c2f0a26a01b5bb347 Mon Sep 17 00:00:00 2001 From: tiptorrent development team Date: Sat, 18 Sep 2021 23:12:02 +0200 Subject: incorrect loop break logic on error --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index a246bc6..d3e0bfc 100644 --- a/src/main.c +++ b/src/main.c @@ -429,7 +429,7 @@ int main(int argc, char *argv[]) tip_client_connect(argv[1]); _cli.state = TIP_CLIENT_RECEIVING_HEADER; - while (_cli.state != TIP_CLIENT_DONE || _cli.error) + while (_cli.state != TIP_CLIENT_DONE && !_cli.error) ev_loop(tip_main_loop, 0); file_chunk[k] = true; -- cgit v1.2.3-18-g5258