Bottleneck clear should wait instead of try

pull/43/head
Lauri Kasanen 4 years ago
parent f57e6e644b
commit e208d5bb5f

@ -111,7 +111,7 @@ void GetAPIMessager::mainUpdateBottleneckStats(const char userid[], const char s
} }
void GetAPIMessager::mainClearBottleneckStats(const char userid[]) { void GetAPIMessager::mainClearBottleneckStats(const char userid[]) {
if (pthread_mutex_trylock(&statMutex)) if (pthread_mutex_lock(&statMutex))
return; return;
bottleneckStats.erase(userid); bottleneckStats.erase(userid);

Loading…
Cancel
Save