Merge pull request #2591 from cuberite/chunkprepare-deadlock
Fix deadlock, resolves #2521
This commit is contained in:
commit
47604cd914
@ -64,7 +64,10 @@ void cSpawnPrepare::PrepareChunks(cWorld & a_World, int a_SpawnChunkX, int a_Spa
|
||||
} // for i
|
||||
|
||||
// Wait for the lighting thread to prepare everything. Event is set in the Call() callback:
|
||||
prep.m_EvtFinished.Wait();
|
||||
if (MaxIdx > 0)
|
||||
{
|
||||
prep.m_EvtFinished.Wait();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user