diff --git a/ShiftOS_TheReturn/AudioManager.cs b/ShiftOS_TheReturn/AudioManager.cs index 0950b55..85e1371 100644 --- a/ShiftOS_TheReturn/AudioManager.cs +++ b/ShiftOS_TheReturn/AudioManager.cs @@ -125,10 +125,14 @@ namespace ShiftOS.Engine } if (play) { - while(_out.PlaybackState == PlaybackState.Playing) + try { - Thread.Sleep(10); + while (_out.PlaybackState == PlaybackState.Playing) + { + Thread.Sleep(10); + } } + catch { } ShiftOS.Engine.AudioManager.Stop(); _out = new WaveOut(); var mp3 = new WaveFileReader(str);