From 9fff41fd535db17295366a3113a187edb7b9a53f Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Thu, 28 Oct 2021 16:43:42 +0200 Subject: [PATCH] ringer: Make sure to reset feedback profile if not set to "quiet" --- src/calls-ringer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calls-ringer.c b/src/calls-ringer.c index a6f31df..0628b1e 100644 --- a/src/calls-ringer.c +++ b/src/calls-ringer.c @@ -104,14 +104,14 @@ static void start (CallsRinger *self, gboolean quiet) { + if (self->event) + lfb_event_set_feedback_profile (self->event, quiet ? "quiet" : NULL); + if (self->state == CALLS_RING_STATE_PLAYING || self->state == CALLS_RING_STATE_REQUEST_PLAY) return; if (self->event) { - if (quiet) - lfb_event_set_feedback_profile (self->event, "quiet"); - g_clear_object (&self->cancel_ring); self->cancel_ring = g_cancellable_new ();