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:
Luiz Augusto von Dentz 2010-09-30 11:09:59 +03:00 committed by Marcel Holtmann
parent 2f3a6e033b
commit 9fcc33bfb8

View File

@ -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;
}