cpw.malu.xmpp.jingle_ft: a1760945: Actually set IBB session to state opened...

malu at pidgin.im malu at pidgin.im
Mon Apr 12 15:40:41 EDT 2010


-----------------------------------------------------------------
Revision: a1760945192bd1d4dc6cb331a6013d8102d61219
Ancestor: dbd3cd20f55a6c01a83bc775c6b1bc7820aa1ed2
Author: malu at pidgin.im
Date: 2010-04-12T19:01:09
Branch: im.pidgin.cpw.malu.xmpp.jingle_ft
URL: http://d.pidgin.im/viewmtn/revision/info/a1760945192bd1d4dc6cb331a6013d8102d61219

Modified files:
        libpurple/protocols/jabber/jingle/file-transfer.c

ChangeLog: 

Actually set IBB session to state opened when being the intiator and going
for IBB from the start (when transferring a small file)

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jingle/file-transfer.c	21b345fd0c894764322a0fc5693b7a444a74b375
+++ libpurple/protocols/jabber/jingle/file-transfer.c	a09ff11d9ff3b22e68e241c17a708011e7e6bc93
@@ -688,11 +688,16 @@ jingle_file_transfer_handle_action_inter
 		case JINGLE_SESSION_ACCEPT: {
 			JingleSession *session = jingle_content_get_session(content);
 			JingleTransport *transport = jingle_content_get_transport(content);
+			xmlnode *xmltransport = xmlnode_get_child(xmlcontent, "transport");
 			PurpleXfer *xfer = 
 				JINGLE_FT_GET_PRIVATE(JINGLE_FT(content))->xfer;
 			
 			/* do stuff here, start the transfer, etc... */
 			if (JINGLE_IS_IBB(transport)) {
+				if (xmltransport) {
+					jingle_ibb_handle_transport_accept(JINGLE_IBB(transport),
+					    xmltransport);
+				}
 				/* send first data */
 				purple_xfer_set_write_fnc(xfer, jingle_file_transfer_ibb_write);
 				purple_xfer_start(xfer, -1, NULL, 0);


More information about the Commits mailing list