aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorvmordovin <vmordovin@yandex-team.com>2024-08-23 21:05:56 +0300
committervmordovin <vmordovin@yandex-team.com>2024-08-23 21:57:01 +0300
commit2509c167510fa7b9f1fa35f0c9aebcccc61c34bf (patch)
treef7c5053eadd1aabc4f87864dd759f9f3b4f46b6f /library
parent5fbd2e59a1f093d334ae5c4bb316d503420bfef3 (diff)
downloadydb-2509c167510fa7b9f1fa35f0c9aebcccc61c34bf.tar.gz
Fix TSAN warning
e2f99a0432865120bc478a3fb91956424c374445
Diffstat (limited to 'library')
-rw-r--r--library/cpp/http/server/http.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/cpp/http/server/http.cpp b/library/cpp/http/server/http.cpp
index a5dfe08e55..13088f5e44 100644
--- a/library/cpp/http/server/http.cpp
+++ b/library/cpp/http/server/http.cpp
@@ -273,7 +273,7 @@ public:
TGuard<TMutex> g(StopMutex);
JoinListenerThreads();
- while (ConnectionCount) {
+ while (AtomicGet(ConnectionCount)) {
usleep(10000);
Connections->Clear();
}