1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 16:48:49 -05:00

pause: avoid updating socket if done was already called

... avoids unnecesary recursive risk when the transfer is already done.

Reported-by: Richard Bowker
Fixes #4563
Closes #4574
This commit is contained in:
Daniel Stenberg 2019-11-08 23:07:55 +01:00
parent 07cf042ece
commit 32747aafa0
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1027,9 +1027,10 @@ CURLcode curl_easy_pause(struct Curl_easy *data, int action)
Curl_update_timer(data->multi);
}
/* This transfer may have been moved in or out of the bundle, update
the corresponding socket callback, if used */
Curl_updatesocket(data);
if(!data->state.done)
/* This transfer may have been moved in or out of the bundle, update the
corresponding socket callback, if used */
Curl_updatesocket(data);
return result;
}