null check for previous commit

This commit is contained in:
adelikat 2017-02-04 10:45:32 -06:00
parent 923565c350
commit 3d805a3541
1 changed files with 5 additions and 3 deletions

View File

@ -69,9 +69,12 @@ namespace BizHawk.Client.EmuHawk
GlobalWin.DisplayManager.ClearLuaSurfaces();
LuaImp.GuiLibrary.DrawFinish();
foreach (var lua in _luaList)
{
if (lua.Thread != null)
{
lua.Thread.Dispose();
}
}
CloseLua();
}
else
@ -541,8 +544,7 @@ namespace BizHawk.Client.EmuHawk
}
}, () =>
{
lf.State = LuaFile.RunState.Disabled;
lf.Thread = null;
lf.Stop();
});
}
catch (Exception ex)