Commit 09bf85af authored by Christian Hergert's avatar Christian Hergert
Browse files

threading: use task cancellation path upon IdeObject destruction

parent f9e8020e
......@@ -1547,7 +1547,9 @@ ide_task_propagate_locked (IdeTask *self,
*error = g_error_copy (priv->result->u.v_error);
else if ((priv->check_cancellable && g_cancellable_is_cancelled (priv->cancellable)) ||
priv->result->type == IDE_TASK_RESULT_CANCELLED)
priv->result->type == IDE_TASK_RESULT_CANCELLED ||
(IDE_IS_OBJECT (priv->source_object) &&
ide_object_in_destruction (IDE_OBJECT (priv->source_object))))
g_set_error (error,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment