try-catch inside AudioThreadMain

remotes/1695061714407202320/main
cosmonaut 2023-06-28 13:20:18 -07:00
parent 0fd3365d1d
commit 5ff7da927a
1 changed files with 8 additions and 1 deletions

View File

@ -138,9 +138,16 @@ namespace MoonWorks.Audio
while (!IsDisposed) while (!IsDisposed)
{ {
lock (StateLock) lock (StateLock)
{
try
{ {
ThreadMainTick(); ThreadMainTick();
} }
catch (Exception e)
{
Logger.LogError(e.ToString());
}
}
WakeSignal.WaitOne(UpdateInterval); WakeSignal.WaitOne(UpdateInterval);
} }