diff libpurple/protocols/jabber/jingle/rtp.c @ 24995:8dba34f5f21a

Temporarily fix an oversight.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Mon, 05 Jan 2009 10:19:51 +0000
parents 50309309bc4d
children 266c3cc02e0e
line wrap: on
line diff
--- 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));