mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-12-14 00:17:35 +00:00
ringer: Don't warn if feedback triggering got cancelled
This commit is contained in:
parent
3e26294f3c
commit
e604779497
1 changed files with 3 additions and 3 deletions
|
@ -91,9 +91,9 @@ on_event_triggered (LfbEvent *event,
|
||||||
if (lfb_event_trigger_feedback_finish (event, res, &err)) {
|
if (lfb_event_trigger_feedback_finish (event, res, &err)) {
|
||||||
change_ring_state (self, CALLS_RING_STATE_PLAYING);
|
change_ring_state (self, CALLS_RING_STATE_PLAYING);
|
||||||
} else {
|
} else {
|
||||||
// if cancelled we should get a G_IO_ERROR_CANCELLED error
|
if (!g_error_matches (err, G_IO_ERROR, G_IO_ERROR_CANCELLED))
|
||||||
g_warning ("Failed to trigger feedback for '%s': %s",
|
g_warning ("Failed to trigger feedback for '%s': %s",
|
||||||
lfb_event_get_event (event), err->message);
|
lfb_event_get_event (event), err->message);
|
||||||
change_ring_state (self, CALLS_RING_STATE_INACTIVE);
|
change_ring_state (self, CALLS_RING_STATE_INACTIVE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue