[winpr,pool] fix winpr_SetThreadpoolThreadMaximum

unlock the arraylist, don´t lock it twice.
This commit is contained in:
akallabeth 2024-06-07 09:20:20 +02:00
parent 22d9f070ba
commit 736774dd22
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -249,7 +249,7 @@ VOID winpr_SetThreadpoolThreadMaximum(PTP_POOL ptpp, DWORD cthrdMost)
ArrayList_Clear(ptpp->Threads);
ResetEvent(ptpp->TerminateEvent);
}
ArrayList_Lock(ptpp->Threads);
ArrayList_Unlock(ptpp->Threads);
winpr_SetThreadpoolThreadMinimum(ptpp, ptpp->Minimum);
}