Use LuaThread Yield here instead of directly using LuaState's
This commit is contained in:
parent
51f01efdc4
commit
15b2264cb4
|
@ -58,7 +58,7 @@ namespace BizHawk.Client.Common
|
|||
|
||||
if (State == RunState.Running && Thread.State.Status == KeraLua.LuaStatus.OK)
|
||||
{
|
||||
Thread.State.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)
|
||||
Thread.Yield(); // 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;
|
||||
|
|
Loading…
Reference in New Issue