/soc/2013/ashmew2/filetransferX: 923898053e87: Successfully sent...

Ashish Gupta ashmew2 at gmail.com
Mon Sep 9 01:49:02 EDT 2013


Changeset: 923898053e876c33c9e39890b7b1038d9b80c095
Author:	 Ashish Gupta <ashmew2 at gmail.com>
Date:	 2013-09-09 11:18 +0530
Branch:	 filetransferX
URL: https://hg.pidgin.im/soc/2013/ashmew2/filetransferX/rev/923898053e87

Description:

Successfully sent a big file to Gtalk. md5 matches\!

diffstat:

 libpurple/protocols/jabber/google/google_session.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (29 lines):

diff --git a/libpurple/protocols/jabber/google/google_session.c b/libpurple/protocols/jabber/google/google_session.c
--- a/libpurple/protocols/jabber/google/google_session.c
+++ b/libpurple/protocols/jabber/google/google_session.c
@@ -2082,7 +2082,7 @@ void cb_nice_component_state_changed(Nic
 		FILE *file_ptr = share_session->file_to_send;
 		
 		purple_debug_info("google_session", "STATE_READY for XFER_SEND! in cb_component_state_changed.");
-		purple_debug_info("google_session", "xfer->local_filename = %s\n",share_session->xfer->local_filename);
+		//	purple_debug_info("google_session", "xfer->local_filename = %s\n",share_session->xfer->local_filename);
 		/*		if(share_session->channel_state == GTALK_XFER_CHANNEL_HTTP_OK_SENT) {
 			cb_nice_component_writable(share_session->share_agent, share_session->stream_id, 1,
 				share_session);  
@@ -2221,7 +2221,7 @@ void cb_nice_component_writable(NiceAgen
 	PurpleXfer *xfer = share_session->xfer;
 	
 	FILE *file_ptr = share_session->file_to_send;
-	FILE *file_buf = share_session->file_buf;
+	char *file_buf = share_session->file_buf;
 	int fread_count = 0;
 	int send_ret, fread_ret;
 	
@@ -2295,6 +2295,7 @@ void cb_nice_component_writable(NiceAgen
 				purple_debug_info("google_session", "Buffer sent..Should grab next buffer\n");
 				/*TODO: Put a call to grab next buffer here*/
 				gtalk_xfer_get_next_block(share_session);
+				file_buf = share_session->file_buf;
 			}
 			purple_debug_info("google_session", "Touching while TRUE's floor..\n");
 		}



More information about the Commits mailing list