[telepathy-gabble/master] JingleSession: when content is removed, check if the session has become ready

Senko Rasic senko.rasic at collabora.co.uk
Mon Jun 29 04:43:06 PDT 2009


---
 src/jingle-session.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/jingle-session.c b/src/jingle-session.c
index 3302ca8..1a7a1af 100644
--- a/src/jingle-session.c
+++ b/src/jingle-session.c
@@ -2063,7 +2063,16 @@ content_removed_cb (GabbleJingleContent *c, gpointer user_data)
     return;
 
   if (count_active_contents (sess) == 0)
-    gabble_jingle_session_terminate (sess, TP_CHANNEL_GROUP_CHANGE_REASON_NONE, NULL);
+    {
+      gabble_jingle_session_terminate (sess, TP_CHANNEL_GROUP_CHANGE_REASON_NONE, NULL);
+    }
+  else
+    {
+      /* It's possible the content now removed was
+       * blocking us from creating or accepting the
+       * session, so we might as well try now. */
+      try_session_initiate_or_accept (sess);
+    }
 }
 
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list