Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions olp-cpp-sdk-core/src/http/curl/NetworkCurl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,11 @@ void NetworkCurl::Deinitialize() {
}
#endif
thread_.join();

#if (defined OLP_SDK_NETWORK_HAS_PIPE) || (defined OLP_SDK_NETWORK_HAS_PIPE2)
close(pipe_[0]);
close(pipe_[1]);
#endif
} else {
// We are trying to stop the very thread we are in. This is not recommended,
// but we try to handle it gracefully. This could happen by calling from one
Expand Down Expand Up @@ -589,11 +594,6 @@ void NetworkCurl::Teardown() {
// cURL teardown
curl_multi_cleanup(curl_);
curl_ = nullptr;

#if (defined OLP_SDK_NETWORK_HAS_PIPE) || (defined OLP_SDK_NETWORK_HAS_PIPE2)
close(pipe_[0]);
close(pipe_[1]);
#endif
}

// Handle completed messages
Expand Down
Loading