Fix Gtalk bug where it would terminate the session after 15 seconds. vv

Mon, 23 Mar 2009 06:32:47 +0000

author
Michael Ruprecht <maiku@pidgin.im>
date
Mon, 23 Mar 2009 06:32:47 +0000
branch
vv
changeset 26484
131c5b5bcf61
parent 26483
228a6b1f2e04
child 26485
df2f8d35564b

Fix Gtalk bug where it would terminate the session after 15 seconds.

libpurple/protocols/jabber/google.c file | annotate | diff | comparison | revisions
--- 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

mercurial