fix #3226 for real this time

i hate threads...
This commit is contained in:
CasualPokePlayer 2022-04-23 16:27:15 -07:00
parent de1d8f56db
commit 8f663feda5
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@
return;
}
Thread.Yield(0); // we MUST yield this thread, else old references to lua libs might be used (and those may contain references to a Dispose()'d emulator)
State = RunState.Disabled;
if (true /*NLua.Lua.WhichLua == "NLua"*/) Thread.GetTable("keepalives")[Thread] = null;
Thread = null;