mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
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:
parent
b712a7e455
commit
8137c47cc6
@ -678,9 +678,6 @@ on_cd_profile_connected (GObject *source_object,
|
|||||||
|
|
||||||
if (!cd_profile_connect_finish (cd_profile, res, &error))
|
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));
|
g_task_return_error (task, g_steal_pointer (&error));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user