changeset 17201:9235189117c0

Fix file transfers aborting and mistakenly being marked as cancelled when they are actually complete. Fixes #814
author Daniel Atallah <daniel.atallah@gmail.com>
date Wed, 23 May 2007 03:59:19 +0000
parents 93fa59b2623e
children 7befa48ab574
files libpurple/ft.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/ft.c	Wed May 23 02:35:44 2007 +0000
+++ b/libpurple/ft.c	Wed May 23 03:59:19 2007 +0000
@@ -891,7 +891,7 @@
 		r = purple_xfer_read(xfer, &buffer);
 		if (r > 0) {
 			fwrite(buffer, 1, r, xfer->dest_fp);
-		} else if(r <= 0) {
+		} else if(r < 0) {
 			purple_xfer_cancel_remote(xfer);
 			return;
 		}