[ostree] pull: Exit mainloop immediately if we encounter an error
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] pull: Exit mainloop immediately if we encounter an error
- Date: Wed, 22 Aug 2012 23:45:57 +0000 (UTC)
commit b36b19eaf80a67f40b0b7b6c543b64fb425fc4d8
Author: Colin Walters <walters verbum org>
Date: Wed Aug 22 19:43:10 2012 -0400
pull: Exit mainloop immediately if we encounter an error
Otherwise we'll just hang.
src/ostree/ostree-pull.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/ostree/ostree-pull.c b/src/ostree/ostree-pull.c
index fa5d55c..a666b4d 100644
--- a/src/ostree/ostree-pull.c
+++ b/src/ostree/ostree-pull.c
@@ -201,6 +201,7 @@ check_outstanding_requests_handle_error (OtPullData *pull_data,
{
pull_data->caught_error = TRUE;
g_propagate_error (pull_data->async_error, error);
+ g_main_loop_quit (pull_data->loop);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]