[gnome-online-accounts/gnome-3-22] identity: Fix the error handling when signing out an identity
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/gnome-3-22] identity: Fix the error handling when signing out an identity
- Date: Wed, 4 Jan 2017 17:19:09 +0000 (UTC)
commit 04c58ffa22e0eb2966c3554c7d2f5db0eba2fc03
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Jan 4 18:05:12 2017 +0100
identity: Fix the error handling when signing out an identity
https://bugzilla.gnome.org/show_bug.cgi?id=776871
src/goaidentity/goaidentityservice.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/goaidentity/goaidentityservice.c b/src/goaidentity/goaidentityservice.c
index 6f0fd60..0cb0b7d 100644
--- a/src/goaidentity/goaidentityservice.c
+++ b/src/goaidentity/goaidentityservice.c
@@ -472,6 +472,8 @@ on_got_identity_for_sign_out (GoaIdentityManager *manager,
{
g_debug ("GoaIdentityService: Identity could not be signed out: %s",
error->message);
+ g_simple_async_result_take_error (operation_result, error);
+ g_simple_async_result_complete_in_idle (operation_result);
goto out;
}
@@ -486,10 +488,11 @@ on_got_identity_for_sign_out (GoaIdentityManager *manager,
NULL,
(GAsyncReadyCallback)
on_identity_signed_out,
- operation_result);
+ g_object_ref (operation_result));
out:
g_clear_object (&identity);
+ g_object_unref (operation_result);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]