Skip to content

Commit

Permalink
SPTCH-3413: fix odd total timer reset in file_do()
Browse files Browse the repository at this point in the history
The total timer is properly reset in MSTATE_INIT.
MSTATE_CONNECT starts with resetting the timer that is a start point for
further multi states.
If file://, MSTATE_DO calls file_do() that should not reset the total timer.
Otherwise, the total time is always less than the pre-transfer and the start
transfer times.
  • Loading branch information
sergio-nsk committed Jan 11, 2024
1 parent 82fd17f commit 7148935
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,6 @@ static CURLcode file_do(struct Curl_easy *data, bool *done)

*done = TRUE; /* unconditionally */

Curl_pgrsStartNow(data);

if(data->state.upload)
return file_upload(data);

Expand Down

0 comments on commit 7148935

Please sign in to comment.