fix: try to stop ringtone on call termination

This commit is contained in:
td 2023-01-27 17:57:53 +05:30
parent 10e6b9b0e6
commit d8ac3b337a
No known key found for this signature in database
GPG Key ID: F6D9E9BF14C7D103
1 changed files with 7 additions and 0 deletions

View File

@ -1065,6 +1065,13 @@ class CallSession {
ringingTimer?.cancel();
ringingTimer = null;
try {
voip.delegate.stopRingtone();
} catch (e) {
// maybe rigntone never started (group calls) or has been stopped already
Logs().d('stopping ringtone failed ', e);
}
hangupParty = party;
hangupReason = reason;