color-store: Forward cancelled error if connect failed

Otherwise the task will remain unfinished despite we cancelling it.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2807>
This commit is contained in:
Jonas Ådahl 2022-12-19 17:13:43 +01:00 committed by Marge Bot
parent b712a7e455
commit 8137c47cc6

View File

@ -678,9 +678,6 @@ on_cd_profile_connected (GObject *source_object,
if (!cd_profile_connect_finish (cd_profile, res, &error))
{
if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
return;
g_task_return_error (task, g_steal_pointer (&error));
return;
}