libpurple/protocols/jabber/jingle/rtp.c

branch
vv
changeset 26195
0106a513554b
parent 26194
b8aab50491f4
child 26196
ae4a4a68e65d
--- a/libpurple/protocols/jabber/jingle/rtp.c	Mon Jan 05 09:48:39 2009 +0000
+++ b/libpurple/protocols/jabber/jingle/rtp.c	Mon Jan 05 10:19:51 2009 +0000
@@ -325,8 +325,8 @@
 {
 	purple_debug_info("jingle-rtp", "state-changed: type %d id: %s name: %s\n", type, sid, name);
 
-	if (sid == NULL && name == NULL &&
-			jingle_session_is_initiator(session) == TRUE) {
+	if (type == PURPLE_MEDIA_STATE_CHANGED_END &&
+			sid == NULL && name == NULL) {
 		gchar *sid = jingle_session_get_sid(session);
 		jabber_iq_send(jingle_session_to_packet(session,
 				JINGLE_SESSION_TERMINATE));

mercurial