summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;