summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tool_operate.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index 39200dcd2..7b6d91241 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -2235,12 +2235,13 @@ static CURLcode parallel_transfers(struct GlobalConfig *global,
curl_multi_remove_handle(multi, easy);
result = post_per_transfer(global, ended, result, &retry);
- if(retry)
- continue;
progress_finalize(ended); /* before it goes away */
all_added--; /* one fewer added */
removed = TRUE;
- (void)del_per_transfer(ended);
+ if(retry)
+ ended->added = FALSE; /* add it again */
+ else
+ (void)del_per_transfer(ended);
}
} while(msg);
if(removed) {