Skip to content

Commit

Permalink
Fix thread-safety when shutdown. (#1977)
Browse files Browse the repository at this point in the history
  • Loading branch information
owent authored Feb 10, 2023
1 parent 9d8efaf commit 6f0a30e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/src/http/client/curl/http_client_curl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,9 @@ void HttpClient::CleanupSession(uint64_t session_id)
}
else if (session->IsSessionActive() && session->GetOperation())
{
session->FinishOperation();
// If this session is alread waiting to be removed, just wakeup background thread to call
// doRemoveSessions()
wakeupBackgroundThread();
}
}
}
Expand Down

0 comments on commit 6f0a30e

Please sign in to comment.