From e604779497638fe7418588d3d1bd874b44d9de3b Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Thu, 28 Oct 2021 13:15:02 +0200 Subject: [PATCH] ringer: Don't warn if feedback triggering got cancelled --- 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 f0a8f17..a6f31df 100644 --- a/src/calls-ringer.c +++ b/src/calls-ringer.c @@ -91,9 +91,9 @@ on_event_triggered (LfbEvent *event, if (lfb_event_trigger_feedback_finish (event, res, &err)) { change_ring_state (self, CALLS_RING_STATE_PLAYING); } else { - // if cancelled we should get a G_IO_ERROR_CANCELLED error - g_warning ("Failed to trigger feedback for '%s': %s", - lfb_event_get_event (event), err->message); + if (!g_error_matches (err, G_IO_ERROR, G_IO_ERROR_CANCELLED)) + g_warning ("Failed to trigger feedback for '%s': %s", + lfb_event_get_event (event), err->message); change_ring_state (self, CALLS_RING_STATE_INACTIVE); }