mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix GDScript thread-exit routine assuming thread-enter was called
This commit is contained in:
parent
5df9867967
commit
cfa7e72057
1 changed files with 6 additions and 0 deletions
|
@ -2106,6 +2106,12 @@ void GDScriptLanguage::thread_enter() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void GDScriptLanguage::thread_exit() {
|
void GDScriptLanguage::thread_exit() {
|
||||||
|
// This thread may have been created before GDScript was up
|
||||||
|
// (which also means it can't have run any GDScript code at all).
|
||||||
|
if (!GDScript::func_ptrs_to_update_thread_local) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
GDScript::_fixup_thread_function_bookkeeping();
|
GDScript::_fixup_thread_function_bookkeeping();
|
||||||
|
|
||||||
bool destroy = false;
|
bool destroy = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue