v0.6.5b: added a variety of safety checks

This commit is contained in:
Evan Debenham
2018-05-16 12:44:00 -04:00
parent 8733556462
commit 05028ebc2a
5 changed files with 27 additions and 7 deletions

View File

@@ -99,8 +99,12 @@ public enum Music {
public void stop() {
if (player != null) {
player.stop();
player.release();
try {
player.stop();
player.release();
} catch ( Exception e ){
Game.reportException(e);
}
player = null;
}
}