mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-02-02 11:39:12 +01:00
Bottleneck clear should wait instead of try
This commit is contained in:
parent
f57e6e644b
commit
e208d5bb5f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user