cpw.malu.xmpp.jingle_ft: c5fe8902: Set block size before setting IBB sessio...

malu at pidgin.im malu at pidgin.im
Tue May 19 13:30:44 EDT 2009


-----------------------------------------------------------------
Revision: c5fe89022cad967c9e5489efaf305bcaad22eded
Ancestor: c7c9532c414c0def9ee6d7f10f65ac7ddb9324a4
Author: malu at pidgin.im
Date: 2009-05-19T17:28:16
Branch: im.pidgin.cpw.malu.xmpp.jingle_ft
URL: http://d.pidgin.im/viewmtn/revision/info/c5fe89022cad967c9e5489efaf305bcaad22eded

Modified files:
        libpurple/protocols/jabber/jingle/ibbs.c

ChangeLog: 

Set block size before setting IBB session state to open when setting up
an incoming IBB transport

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jingle/ibbs.c	d7fafefba804f52580263ec7413b9e9090a72fa8
+++ libpurple/protocols/jabber/jingle/ibbs.c	29d82ae0757e33471668ed44252fb426e7dd7c12
@@ -275,14 +275,15 @@ jingle_ibb_create_session(JingleIBB *ibb
 	purple_debug_info("jingle-ibb", "creating IBB session with sid: %s,\n"
 		" who: %s\n", sid, who);
 
-	/* we will set the IBB session to "open" immediatly, since the Jingle
-	 negotiation defines the "open" state */
-	jabber_ibb_session_set_state(session, JABBER_IBB_SESSION_OPENED);
 	/* if the block size attribute is set, it means we got it from an incoming
 	 request, then set that */
 	if (ibb->priv->block_size) {
 		jabber_ibb_session_set_block_size(session, ibb->priv->block_size);
 	}
+	/* we will set the IBB session to "open" immediatly, since the Jingle
+	 negotiation defines the "open" state */
+	jabber_ibb_session_set_state(session, JABBER_IBB_SESSION_OPENED);
+
 	/* set callbacks... */
 	jabber_ibb_session_set_data_sent_callback(session, 
 		jingle_ibb_data_sent_callback);


More information about the Commits mailing list