mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-15 06:55:30 +08:00
obexd: Fix not detecting errors on small files
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.
This commit is contained in:
parent
2f3a6e033b
commit
9fcc33bfb8
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user