cIsThread: Reset m_ShouldTerminate after the thread has stopped (#4258)
This allows threads to be restarted after stopping. Fixes #4257
This commit is contained in:
@@ -98,7 +98,7 @@ void cChunkGenerator::Stop(void)
|
||||
m_ShouldTerminate = true;
|
||||
m_Event.Set();
|
||||
m_evtRemoved.Set(); // Wake up anybody waiting for empty queue
|
||||
Wait();
|
||||
super::Stop();
|
||||
|
||||
delete m_Generator;
|
||||
m_Generator = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user