v0.6.5b: added a variety of safety checks
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user