diff libpurple/protocols/jabber/google.c @ 26436:d8d6fb37c789

Fix Gtalk bug where it would terminate the session after 15 seconds.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Mon, 23 Mar 2009 06:32:47 +0000
parents 6f0200f1e497
children 29bc149cbd07
line wrap: on
line diff
--- a/libpurple/protocols/jabber/google.c	Mon Mar 23 06:15:13 2009 +0000
+++ b/libpurple/protocols/jabber/google.c	Mon Mar 23 06:32:47 2009 +0000
@@ -459,6 +459,7 @@
 	xmlnode *desc_element = xmlnode_get_child(sess, "description");
 	xmlnode *codec_element = xmlnode_get_child(desc_element, "payload-type");
 	GList *codecs = NULL;
+	JabberIq *result = NULL;
 
 	for (; codec_element; codec_element =
 			xmlnode_get_next_twin(codec_element)) {
@@ -478,6 +479,11 @@
 			session->remote_jid, codecs);
 
 	purple_media_accept(session->media);
+
+	result = jabber_iq_new(js, JABBER_IQ_RESULT);
+	jabber_iq_set_id(result, xmlnode_get_attrib(packet, "id"));
+	xmlnode_set_attrib(result->node, "to", session->remote_jid);
+	jabber_iq_send(result);
 }
 
 static void