forked from MoonsideGames/MoonWorks
try-catch inside AudioThreadMain
parent
0fd3365d1d
commit
5ff7da927a
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue