Skip to content

Commit

Permalink
Fix curl thread detach
Browse files Browse the repository at this point in the history
  • Loading branch information
marcalff committed Nov 27, 2024
1 parent 24816a8 commit d5f1075
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ext/src/http/client/curl/http_client_curl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -462,18 +462,18 @@ void HttpClient::MaybeSpawnBackgroundThread()
{
if (self->background_thread_)
{
if (self->background_thread_instrumentation_ != nullptr)
{
self->background_thread_instrumentation_->OnEnd();
self->background_thread_instrumentation_.reset();
}
self->background_thread_->detach();
self->background_thread_.reset();
}
break;
}
}
}

if (self->background_thread_instrumentation_ != nullptr)
{
self->background_thread_instrumentation_->OnEnd();
}
},
this));
}
Expand Down

0 comments on commit d5f1075

Please sign in to comment.