libostree: Add _finish() API to async progress
Since OstreeAsyncProgress queues to the mainloop, we might "lose" the last message. Give callers a way to force a flush.
This commit is contained in:
1 parent
349083194d
commit
f040c02048
4 files changed
+49
-3
No files matched your search
@@ -452,6 +452,9 @@ ostree_sysroot_upgrader_pull (OstreeSysrootUpgrader *self,
|
||||
flags, progress,
|
||||
cancellable, error))
|
||||
goto out;
|
||||
|
||||
if (progress)
|
||||
ostree_async_progress_finish (progress);
|
||||
}
|
||||
|
||||
if (!ostree_repo_resolve_rev (repo, origin_refspec, FALSE, &self->new_revision,
|
||||
|
||||
Reference in new issue
Block a user