pidgin.vv: dcebdcbd: Fix Gtalk bug where it would terminate t...

maiku at soc.pidgin.im maiku at soc.pidgin.im
Mon Mar 23 04:10:31 EDT 2009


-----------------------------------------------------------------
Revision: dcebdcbd0f8b5de73d367ab373e91b35a3e1a3c1
Ancestor: 3f58d4a02812b2bc8ecbaad6e33e940cc91c56ac
Author: maiku at soc.pidgin.im
Date: 2009-03-23T06:32:47
Branch: im.pidgin.pidgin.vv
URL: http://d.pidgin.im/viewmtn/revision/info/dcebdcbd0f8b5de73d367ab373e91b35a3e1a3c1

Modified files:
        libpurple/protocols/jabber/google.c

ChangeLog: 

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

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/google.c	c8ab5dc9cd92f9dc043b1a442553d5e85c3ab45a
+++ libpurple/protocols/jabber/google.c	ad5bc43161f250b37431612f36d0a4ed56f7e4af
@@ -459,6 +459,7 @@ google_session_handle_accept(JabberStrea
 	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 @@ google_session_handle_accept(JabberStrea
 			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


More information about the Commits mailing list