summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortiptorrent development team <tiptorrent@soleta.eu>2021-09-18 23:12:02 +0200
committertiptorrent development team <tiptorrent@soleta.eu>2021-09-18 23:26:01 +0200
commit6b47735b55df4c6ce34c534c2f0a26a01b5bb347 (patch)
tree72a885dbb72da9aa2f5961e9bd08d703ba4ade33 /src
parent388a3c1f45ad071380ec7c685dcc5a0d04c8c513 (diff)
incorrect loop break logic on error
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 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;