mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-23 20:57:12 -04:00
An invalid .ogg file should not crash the whole client. (Thanks JplaysClassic)
This commit is contained in:
parent
f5a016fce0
commit
874de2ce9b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user