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:
@@ -279,8 +279,10 @@ mm_manager_new_cb (GDBusConnection *connection,
|
|||||||
|
|
||||||
self->mm = mm_manager_new_finish (res, &error);
|
self->mm = mm_manager_new_finish (res, &error);
|
||||||
if (!self->mm) {
|
if (!self->mm) {
|
||||||
g_warning ("Error creating ModemManager Manager: %s",
|
if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
|
||||||
error->message);
|
g_warning ("Error creating ModemManager Manager: %s",
|
||||||
|
error->message);
|
||||||
|
|
||||||
update_status (self);
|
update_status (self);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user