Mercurial > pidgin.yaz
changeset 4540:d83c5b925a05
[gaim-migrate @ 4819]
Removed a check that I don't think is needed.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 06 Feb 2003 10:11:57 +0000 |
parents | 05476ef20d58 |
children | 0626ec2f2feb |
files | src/ft.c |
diffstat | 1 files changed, 5 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ft.c Thu Feb 06 08:42:38 2003 +0000 +++ b/src/ft.c Thu Feb 06 10:11:57 2003 +0000 @@ -293,7 +293,7 @@ void gaim_xfer_set_completed(struct gaim_xfer *xfer, gboolean completed) { - if(xfer == NULL) + if (xfer == NULL) return; xfer->completed = completed; @@ -329,7 +329,7 @@ if (xfer == NULL) return; - if(xfer->size == 0) + if (xfer->size == 0) xfer->bytes_remaining = size - xfer->bytes_sent; xfer->size = size; @@ -436,7 +436,7 @@ r = read(xfer->fd, *buffer, s); - if(r == 0) + if (r == 0) gaim_xfer_set_completed(xfer, TRUE); } @@ -493,11 +493,9 @@ g_free(buffer); - if (r < 0) - return; + if (gaim_xfer_get_size(xfer) > 0) + xfer->bytes_remaining -= r; - if(gaim_xfer_get_size(xfer) > 0) - xfer->bytes_remaining -= r; xfer->bytes_sent += r; if (xfer->ops.ack != NULL)