~singpolyma/cheogram-android

a839f95ef36a7ff03b81ebe8867ece09206cee93 — Stephen Paul Weber 1 year, 5 months ago 2be48f4 2.12.1-7
Catch possible race when stopping tone at end of call
1 files changed, 4 insertions(+), 1 deletions(-)

M src/main/java/eu/siacs/conversations/xmpp/jingle/ToneManager.java
M src/main/java/eu/siacs/conversations/xmpp/jingle/ToneManager.java => src/main/java/eu/siacs/conversations/xmpp/jingle/ToneManager.java +4 -1
@@ 161,7 161,10 @@ class ToneManager {
            currentTone.cancel(true);
        }
        if (toneGenerator != null) {
            toneGenerator.stopTone();
            // catch race condition with already-released generator
            try {
                toneGenerator.stopTone();
            } catch (final RuntimeException e) { }
        }
    }