Skip to content

Commit

Permalink
PkTask: Fix invalid cast from 'GsPackagekitTask' to 'GTask'
Browse files Browse the repository at this point in the history
Fix the following regression from 9dfaf0d

11:30:42:759 PK  internal error: failed, but no error code: cancelled-priority
11:30:47:878 PK  internal error: failed, but no error code: cancelled-priority
11:30:55:800 GLib-GObject invalid cast from 'GsPackagekitTask' to 'GTask'
11:30:55:800 GLib-GIO g_task_get_task_data: assertion 'G_IS_TASK (task)' failed
11:30:55:801 GLib-GIO g_task_get_source_object: assertion 'G_IS_TASK (task)' failed
  • Loading branch information
sidt4 committed Mar 15, 2024
1 parent f1e4ad6 commit 3ff688f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/packagekit-glib2/pk-task.c
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ pk_task_ready_cb (GObject *source_object, GAsyncResult *res, gpointer user_data)
if (state->exit_enum == PK_EXIT_ENUM_CANCELLED_PRIORITY) {
state->retry_id = g_timeout_add (PK_TASK_TRANSACTION_CANCELLED_RETRY_TIMEOUT,
pk_task_retry_cancelled_transaction_cb,
g_steal_pointer (&task));
g_steal_pointer (&gtask));
return;
}

Expand Down

0 comments on commit 3ff688f

Please sign in to comment.