forked from Mirrors/flatpak-builder
lib: Properly finishe OstreeAsyncProgress objects
parent
a7b2f05a6a
commit
f363fddd32
|
@ -771,6 +771,9 @@ xdg_app_installation_install (XdgAppInstallation *self,
|
|||
if (created_deploy_base && result == NULL)
|
||||
gs_shutil_rm_rf (deploy_base, cancellable, NULL);
|
||||
|
||||
if (ostree_progress)
|
||||
ostree_async_progress_finish (ostree_progress);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -881,6 +884,9 @@ xdg_app_installation_update (XdgAppInstallation *self,
|
|||
if (main_context)
|
||||
g_main_context_pop_thread_default (main_context);
|
||||
|
||||
if (ostree_progress)
|
||||
ostree_async_progress_finish (ostree_progress);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -1179,6 +1185,9 @@ xdg_app_installation_update_appstream_sync (XdgAppInstallation *self,
|
|||
|
||||
g_main_context_pop_thread_default (main_context);
|
||||
|
||||
if (ostree_progress)
|
||||
ostree_async_progress_finish (ostree_progress);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue