1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-04 20:07:36 +00:00

mm-provider: Don't warn about cancelled mm_manager_new()

It is cancelled when disposing and does not warrant a warning.
This commit is contained in:
Evangelos Ribeiro Tzaras 2023-05-01 09:35:10 +02:00
parent 958d63dfab
commit 61b81a285c

View file

@ -279,8 +279,10 @@ mm_manager_new_cb (GDBusConnection *connection,
self->mm = mm_manager_new_finish (res, &error);
if (!self->mm) {
g_warning ("Error creating ModemManager Manager: %s",
error->message);
if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
g_warning ("Error creating ModemManager Manager: %s",
error->message);
update_status (self);
return;
}