Add check for joining thread so it is joinable

This commit is contained in:
Ylva Selling
2021-03-08 16:29:33 +01:00
parent 1bde0560c7
commit 0be1f8d48d

View File

@@ -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 {