mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 03:00:58 -06:00
Add check for joining thread so it is joinable
This commit is contained in:
@@ -90,11 +90,13 @@ SkyBrowserModule::SkyBrowserModule()
|
||||
}
|
||||
|
||||
void SkyBrowserModule::internalDeinitialize() {
|
||||
ZoneScoped
|
||||
// Set flag to false so the thread can exit
|
||||
// Set flag to false so the thread can exit
|
||||
_camIsSyncedWWT = false;
|
||||
_thread.join();
|
||||
LINFO("Joined thread");
|
||||
if (_thread.joinable()) {
|
||||
_thread.join();
|
||||
LINFO("Joined thread");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
scripting::LuaLibrary SkyBrowserModule::luaLibrary() const {
|
||||
|
||||
Reference in New Issue
Block a user