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:
@@ -94,7 +94,7 @@ void cWorldStorage::WaitForFinish(void)
|
||||
// Wait for the thread to finish:
|
||||
m_ShouldTerminate = true;
|
||||
m_Event.Set(); // Wake up the thread if waiting
|
||||
super::Wait();
|
||||
super::Stop();
|
||||
LOGD("World storage thread finished");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user