telepathy-glib: TpChannel: fix typo when removing self handle from group fails

Xavier Claessens xclaesse at kemper.freedesktop.org
Mon May 7 10:02:53 PDT 2012


Module: telepathy-glib
Branch: master
Commit: dc568bfd8af38d07f108b324fa2fbf26a786d353
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=dc568bfd8af38d07f108b324fa2fbf26a786d353

Author: Xavier Claessens <xavier.claessens at collabora.co.uk>
Date:   Mon May  7 18:56:11 2012 +0200

TpChannel: fix typo when removing self handle from group fails

This is now consistent with channel_destroy_cb() for example.
The idea is if there is an error, but channel is invalidated
anyway, there is no point in fallback to Close.

---

 telepathy-glib/channel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/telepathy-glib/channel.c b/telepathy-glib/channel.c
index 19a4ee8..4aebbc9 100644
--- a/telepathy-glib/channel.c
+++ b/telepathy-glib/channel.c
@@ -2515,7 +2515,7 @@ channel_remove_self_cb (TpChannel *channel,
 {
   GSimpleAsyncResult *result = user_data;
 
-  if (tp_proxy_get_invalidated (channel) != NULL &&
+  if (tp_proxy_get_invalidated (channel) == NULL &&
       error != NULL)
     {
       DEBUG ("RemoveMembersWithDetails() with self handle failed; call Close()"



More information about the telepathy-commits mailing list