Fix not detecting errors on small files
Luiz Augusto von Dentz
maintainerPATCH 1/1 Fix not detecting errors on small files
From: Luiz Augusto von Dentz <[email protected]>
Make use of gw_obex_xfer_close instead of gw_obex_xfer_flush since the former not only flushes the remaining data but also wait for the response catching errors that gw_obex_xfer_flush doesn't.
--- client/transfer.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
client/transfer.c +1 -1
@@ -380,7 +380,7 @@ static void put_xfer_progress(GwObexXfer *xfer, gpointer user_data) transfer->filled += len;if (transfer->filled ==0 ) { -gw_obex_xfer_flush (xfer, &err); +gw_obex_xfer_close (xfer, &err); goto done; }
Signature · 1 line
1.7.1
Hi Luiz,
Quoted 8 lines · Luiz Augusto von Dentz
From: Luiz Augusto von Dentz <[email protected]>
Make use of
gw_obex_xfer_closeinstead ofgw_obex_xfer_flushsince the former not only flushes the remaining data but also wait for the response catching errors thatgw_obex_xfer_flushdoesn't.--- client/transfer.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Thanks for the patch. It has been pushed upstream.
Johan