[empathy] libempathy-gtk: Call the finish method only once
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] libempathy-gtk: Call the finish method only once
- Date: Wed, 14 Oct 2015 09:52:09 +0000 (UTC)
commit 774bc7e81d039c798ab22eafa6b69bfe0eb1a1ef
Author: Pranav Kant <pranavk gnome org>
Date: Tue Oct 13 23:17:06 2015 +0530
libempathy-gtk: Call the finish method only once
https://bugzilla.gnome.org/show_bug.cgi?id=756165
libempathy-gtk/empathy-geoclue-helper.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libempathy-gtk/empathy-geoclue-helper.c b/libempathy-gtk/empathy-geoclue-helper.c
index f04aed7..5cc750d 100644
--- a/libempathy-gtk/empathy-geoclue-helper.c
+++ b/libempathy-gtk/empathy-geoclue-helper.c
@@ -293,8 +293,8 @@ client_cb (GObject *source,
EmpathyGeoclueHelper *self = g_task_get_source_object (task);
GError *error = NULL;
- self->priv->client = gclue_client_proxy_new_finish (result, &error);
- if (!gclue_client_proxy_new_for_bus_finish (result, &error))
+ self->priv->client = gclue_client_proxy_new_for_bus_finish (result, &error);
+ if (self->priv->client == NULL)
{
DEBUG ("Failed to create Geoclue client: %s", error->message);
g_task_return_error (task, error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]