Skip to contentSkip to conversation

Fix not detecting errors on small files

PATCH In review Luiz Augusto von Dentz 2 participants 2 messages Sep 30, 2010 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 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
index 8ceb36f..ea98b32 100644
@@ -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
#1 lore raw

Hi Luiz,

Quoted 8 lines · Luiz Augusto von Dentz

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(-)

Thanks for the patch. It has been pushed upstream.

Johan