[Telepathy-commits] [telepathy-glib/master] BaseConnection: suppress_handler=FALSE if the new channel satisfies no requests

Will Thompson will.thompson at collabora.co.uk
Thu Sep 25 03:43:46 PDT 2008


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

diff --git a/telepathy-glib/base-connection.c b/telepathy-glib/base-connection.c
index 9f61db6..a6a9dd1 100644
--- a/telepathy-glib/base-connection.c
+++ b/telepathy-glib/base-connection.c
@@ -1006,7 +1006,8 @@ manager_new_channel (gpointer key,
     }
 break_loop_early:
 
-  if (satisfies_create_channel || !satisfies_request_channel)
+  if (request_tokens != NULL &&
+      (satisfies_create_channel || !satisfies_request_channel))
     suppress_handler = TRUE;
 
   tp_svc_connection_emit_new_channel (self, object_path, channel_type,
-- 
1.5.6.5




More information about the Telepathy-commits mailing list