changeset 27679:ed3184cc557d

ft: fwrite failing is a local error. Pointed out by kenshin.
author Paul Aurich <paul@darkrain42.org>
date Thu, 23 Jul 2009 04:05:31 +0000
parents 3712ef8bf231
children 4438ca39ef78 cc8f641d2fde fe75cd926073
files libpurple/ft.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/ft.c	Thu Jul 23 02:52:45 2009 +0000
+++ b/libpurple/ft.c	Thu Jul 23 04:05:31 2009 +0000
@@ -949,7 +949,7 @@
 			const size_t wc = fwrite(buffer, 1, r, xfer->dest_fp);
 			if (wc != r) {
 				purple_debug_error("filetransfer", "Unable to write whole buffer.\n");
-				purple_xfer_cancel_remote(xfer);
+				purple_xfer_cancel_local(xfer);
 				return;
 			}
 		} else if(r < 0) {