Skip to content

Commit 16ab34e

Browse files
committed
bug httpclient: call curl_multi_cleanup() in curl's ev thread
commit_hash:290fbe07cff2e8417594a9aa11f89b53d8d18eaa
1 parent 3fb5593 commit 16ab34e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/curl-ev/multi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ multi::~multi() {
104104
thread_control_.RunInEvLoopSync([] {});
105105

106106
if (handle_) {
107-
native::curl_multi_cleanup(handle_);
107+
thread_control_.RunInEvLoopSync([&handle = handle_] { native::curl_multi_cleanup(handle); });
108108
handle_ = nullptr;
109109
}
110110
}

0 commit comments

Comments
 (0)