Skip to content

Commit 954be4b

Browse files
committed
Remove redundant curl_multi_remove_handle
Should fix tests on Fedora
1 parent f469264 commit 954be4b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

cpr/multiperform.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,6 @@ void MultiPerform::RemoveSession(const std::shared_ptr<Session>& session) {
7979
throw std::invalid_argument("Failed to find session!");
8080
}
8181

82-
// Remove easy handle from multihandle
83-
const CURLMcode error_code = curl_multi_remove_handle(multicurl_->handle, session->curl_->handle);
84-
if (error_code != CURLM_OK) {
85-
std::cerr << "curl_multi_remove_handle() failed, code " << static_cast<int>(error_code) << '\n';
86-
return;
87-
}
88-
8982
// Unlock session
9083
session->isUsedInMultiPerform = false;
9184

0 commit comments

Comments
 (0)