diff --git a/src/org/thoughtcrime/redphone/audio/IncomingRinger.java b/src/org/thoughtcrime/redphone/audio/IncomingRinger.java index 57ab97d78d..d7d9412c32 100644 --- a/src/org/thoughtcrime/redphone/audio/IncomingRinger.java +++ b/src/org/thoughtcrime/redphone/audio/IncomingRinger.java @@ -109,7 +109,6 @@ public class IncomingRinger { public void stop() { if (player != null) { Log.d(TAG, "Stopping ringer"); - player.stop(); player.release(); player = null; } diff --git a/src/org/thoughtcrime/redphone/audio/OutgoingRinger.java b/src/org/thoughtcrime/redphone/audio/OutgoingRinger.java index de85a75263..85931c8e2e 100644 --- a/src/org/thoughtcrime/redphone/audio/OutgoingRinger.java +++ b/src/org/thoughtcrime/redphone/audio/OutgoingRinger.java @@ -112,13 +112,10 @@ public class OutgoingRinger implements MediaPlayer.OnCompletionListener, MediaPl } public void stop() { - if( mediaPlayer == null ) return; - try { - mediaPlayer.stop(); - mediaPlayer.release(); - mediaPlayer = null; - } catch( IllegalStateException e ) { - } + if (mediaPlayer == null) return; + mediaPlayer.release(); + mediaPlayer = null; + currentSoundID = -1; }