mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Small tweak to idle_loop()
In case of a succesful late join we set again 'searching' flag, so we can restart search immediately without an useless lock/unlock cycle. No functional change.
This commit is contained in:
parent
95b24083fb
commit
cd065dd584
1 changed files with 1 additions and 1 deletions
|
@ -1425,7 +1425,7 @@ void Thread::idle_loop() {
|
|||
while (!exit)
|
||||
{
|
||||
// If this thread has been assigned work, launch a search
|
||||
if (searching)
|
||||
while (searching)
|
||||
{
|
||||
Threads.mutex.lock();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue