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:
parent
07cf042ece
commit
32747aafa0
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user