diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.co.uk> | 2010-08-11 14:47:39 +0200 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.co.uk> | 2010-08-18 10:11:37 +0200 |
commit | e16839691327a891db535c36085ca19075da25ab (patch) | |
tree | ab71d72bc9b0159b33796131efb7e4ebad880a70 /src/conn-olpc.c | |
parent | 8f57172adfac6f61af536eadedc6a01b862407b2 (diff) | |
download | telepathy-gabble-e16839691327a891db535c36085ca19075da25ab.tar.gz |
Log error message when a query fails even if we have no dbus context
Diffstat (limited to 'src/conn-olpc.c')
-rw-r--r-- | src/conn-olpc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/conn-olpc.c b/src/conn-olpc.c index 1f987bd8d..bd0a217e4 100644 --- a/src/conn-olpc.c +++ b/src/conn-olpc.c @@ -220,9 +220,6 @@ check_query_reply_msg (LmMessage *reply_msg, LmMessageNode *error_node; GError *error = NULL; - if (context == NULL) - return FALSE; - error_node = lm_message_node_get_child ( wocky_stanza_get_top_node (reply_msg), "error"); if (error_node != NULL) @@ -241,7 +238,10 @@ check_query_reply_msg (LmMessage *reply_msg, } DEBUG ("%s", error->message); - dbus_g_method_return_error (context, error); + + if (context != NULL) + dbus_g_method_return_error (context, error); + g_error_free (error); } } |