mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-06-26 20:51:49 +02: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[]) {
|
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…
x
Reference in New Issue
Block a user