From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> The amount of transferred bytes should only be updated after it has been sent. --- client/transfer.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/transfer.c b/client/transfer.c index 4248055..85139ac 100644 --- a/client/transfer.c +++ b/client/transfer.c @@ -466,12 +466,12 @@ static gssize put_xfer_progress(void *buf, gsize len, gpointer user_data) return size; } - transfer->transferred += size; - if (callback) callback->func(transfer, transfer->transferred, NULL, callback->data); + transfer->transferred += size; + return size; } -- 1.7.6.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html