try-catch inside AudioThreadMain

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

View File

@ -139,7 +139,14 @@ namespace MoonWorks.Audio
{
lock (StateLock)
{
ThreadMainTick();
try
{
ThreadMainTick();
}
catch (Exception e)
{
Logger.LogError(e.ToString());
}
}
WakeSignal.WaitOne(UpdateInterval);