An invalid .ogg file should not crash the whole client. (Thanks JplaysClassic)

This commit is contained in:
UnknownShadow200 2016-08-20 10:04:19 +10:00
parent f5a016fce0
commit 874de2ce9b

View File

@ -76,6 +76,9 @@ namespace ClassicalSharp.Audio {
} catch( InvalidOperationException ex) {
HandleMusicError( ex );
return;
} catch( Exception ex ) {
ErrorHandler.LogError( "AudioPlayer.DoMusicThread()", ex );
game.Chat.Add( "&cError while trying to play music file " + Path.GetFileName( file ) );
}
}
if( disposingMusic ) break;