[Telepathy-commits] [telepathy-gabble/master] GabbleJingleSession: count streams being initiated by remote peer as "active" so we don't remove the session if only they are left. This happens when we want to reject some streams initiated by peers "session-initiate" action

Senko Rasic senko at phyrexia.lan
Tue Dec 2 04:34:05 PST 2008


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

diff --git a/src/jingle-session.c b/src/jingle-session.c
index 278d751..fb8269e 100644
--- a/src/jingle-session.c
+++ b/src/jingle-session.c
@@ -1475,7 +1475,7 @@ _foreach_count_active_contents (gpointer key, gpointer value, gpointer user_data
   JingleContentState state;
 
   g_object_get (c, "state", &state, NULL);
-  if ((state > JINGLE_CONTENT_STATE_NEW) &&
+  if ((state >= JINGLE_CONTENT_STATE_NEW) &&
       (state < JINGLE_CONTENT_STATE_REMOVING))
     {
       *n_contents = *n_contents + 1;
-- 
1.5.6.5




More information about the Telepathy-commits mailing list