Skip to content

Commit

Permalink
updates: Subscribe to updates correctly
Browse files Browse the repository at this point in the history
If done too soon it won't work, and the Progress signal will
never be emitted on the other side.

Fixes: #37
  • Loading branch information
A6GibKm committed Jan 12, 2022
1 parent 44e27ad commit 74f58c7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libportal/updates.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ monitor_created (GObject *object,
else
{
call->portal->update_monitor_handle = g_strdup (call->id);
ensure_update_monitor_connection (call->portal);
g_task_return_boolean (call->task, TRUE);
}

Expand Down Expand Up @@ -343,7 +342,10 @@ update_started (GObject *object,
if (error)
g_task_return_error (call->task, error);
else
g_task_return_boolean (call->task, TRUE);
{
ensure_update_monitor_connection (call->portal);
g_task_return_boolean (call->task, TRUE);
}

install_update_call_free (call);
}
Expand Down

0 comments on commit 74f58c7

Please sign in to comment.