/cpw/tomkiewicz/gg11: 288370cfc73c: Cosmetic changes

Tomasz Wasilczyk tomkiewicz at cpw.pidgin.im
Mon Oct 22 19:42:07 EDT 2012


Changeset: 288370cfc73cc3728246178e3a2630534c3c0e2e
Author:	 Tomasz Wasilczyk <tomkiewicz at cpw.pidgin.im>
Date:	 2012-10-23 01:41 +0200
Branch:	 default
URL: http://hg.pidgin.im/cpw/tomkiewicz/gg11/rev/288370cfc73c

Description:

Cosmetic changes

diffstat:

 libpurple/protocols/gg/edisc.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (27 lines):

diff --git a/libpurple/protocols/gg/edisc.c b/libpurple/protocols/gg/edisc.c
--- a/libpurple/protocols/gg/edisc.c
+++ b/libpurple/protocols/gg/edisc.c
@@ -131,6 +131,7 @@ static void ggp_edisc_xfer_error(PurpleX
 		purple_xfer_get_remote_user(xfer),
 		msg);
 	ggp_edisc_xfer_free(xfer);
+	purple_xfer_end(xfer);
 }
 
 static int ggp_edisc_parse_error(const gchar *data)
@@ -356,6 +357,7 @@ static void ggp_edisc_xfer_reader(Purple
 
 	/* TODO: this is a cheat, watch http connection to do it well */
 	purple_xfer_set_bytes_sent(xfer, edisc_xfer->already_read); 
+	purple_xfer_update_progress(xfer);
 
 	cb(hc, success, eof, stored);
 }
@@ -434,6 +436,7 @@ static void ggp_edisc_xfer_sent(PurpleHt
 
 	if (result_status == 0) {
 		purple_xfer_set_completed(xfer, TRUE);
+		purple_xfer_end(xfer);
 		ggp_edisc_xfer_free(xfer);
 	} else
 		ggp_edisc_xfer_error(xfer, _("Error while sending a file"));



More information about the Commits mailing list