[Telepathy-commits] [telepathy-salut/master] send_channel_iq_tube: check if channel has been offered before adding it

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Wed Mar 11 09:15:34 PDT 2009


---
 src/salut-tubes-channel.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/salut-tubes-channel.c b/src/salut-tubes-channel.c
index 3e23eb0..5df85d9 100644
--- a/src/salut-tubes-channel.c
+++ b/src/salut-tubes-channel.c
@@ -1973,7 +1973,8 @@ send_channel_iq_tube (gpointer key,
                 "state", &state,
                 NULL);
 
-  if (salut_tube_iface_offer_needed (tube))
+  if (state != SALUT_TUBE_CHANNEL_STATE_NOT_OFFERED &&
+      salut_tube_iface_offer_needed (tube))
     {
       GError *error = NULL;
       GibberXmppNode *parameters_node;
-- 
1.5.6.5




More information about the telepathy-commits mailing list