[gnome-online-accounts] 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] identity: Fix the error handling when signing out an identity
- Date: Wed, 4 Jan 2017 17:16:49 +0000 (UTC)
commit dab60ee7e29e12e909dc9ffef310c521277a2784
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]