fix #1957
This commit is contained in:
parent
3e8bad74a2
commit
345ae3b872
|
@ -30,7 +30,8 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
public void DoLuaEvent(IntPtr handle)
|
||||
{
|
||||
LuaSandbox.Sandbox(_ownerFile.Thread, () =>
|
||||
// #1957 - ownerFile can be full, if the script that generated the form ended which will happen if the script does not have a while true loop
|
||||
LuaSandbox.Sandbox(_ownerFile?.Thread, () =>
|
||||
{
|
||||
Environment.CurrentDirectory = _currentDirectory;
|
||||
foreach (LuaEvent luaEvent in ControlEvents)
|
||||
|
|
Loading…
Reference in New Issue