diff --git a/common/network/GetAPIMessager.cxx b/common/network/GetAPIMessager.cxx index e115000..b3bc6bb 100644 --- a/common/network/GetAPIMessager.cxx +++ b/common/network/GetAPIMessager.cxx @@ -111,7 +111,7 @@ void GetAPIMessager::mainUpdateBottleneckStats(const char userid[], const char s } void GetAPIMessager::mainClearBottleneckStats(const char userid[]) { - if (pthread_mutex_trylock(&statMutex)) + if (pthread_mutex_lock(&statMutex)) return; bottleneckStats.erase(userid);