From: Mikel Astiz <mikel.astiz@xxxxxxxxxxxx> Otherwise it can be interpreted as successfully finished, which has its own code path. --- client/transfer.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/transfer.c b/client/transfer.c index f380cb7..99007ec 100644 --- a/client/transfer.c +++ b/client/transfer.c @@ -395,7 +395,7 @@ static void get_buf_xfer_progress(GObex *obex, GError *err, GObexPacket *rsp, transfer, &err); } - if (callback) + if (callback && transfer->transferred != transfer->size) callback->func(transfer, transfer->transferred, err, callback->data); } @@ -439,7 +439,7 @@ static gboolean get_xfer_progress(const void *buf, gsize len, transfer->filled -= w; } - if (callback) + if (callback && transfer->transferred != transfer->size) callback->func(transfer, transfer->transferred, NULL, callback->data); -- 1.7.6.5 -- 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