Skip to content

Commit 6f0a30e

Browse files
authored
Fix thread-safety when shutdown. (#1977)
1 parent 9d8efaf commit 6f0a30e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ext/src/http/client/curl/http_client_curl.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,9 @@ void HttpClient::CleanupSession(uint64_t session_id)
253253
}
254254
else if (session->IsSessionActive() && session->GetOperation())
255255
{
256-
session->FinishOperation();
256+
// If this session is alread waiting to be removed, just wakeup background thread to call
257+
// doRemoveSessions()
258+
wakeupBackgroundThread();
257259
}
258260
}
259261
}

0 commit comments

Comments
 (0)