From: Luiz Augusto von Dentz <luiz.dentz-von@xxxxxxxxx> --- src/obex.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/obex.c b/src/obex.c index f37cd90..6d4430d 100644 --- a/src/obex.c +++ b/src/obex.c @@ -702,9 +702,10 @@ static gboolean handle_async_io(void *object, int flags, int err, ret = obex_read_stream(os, os->obex, os->obj); proceed: - if (ret < 0) + if (ret < 0) { + os_set_response(os->obj, err); OBEX_CancelRequest(os->obex, TRUE); - else + } else OBEX_ResumeRequest(os->obex); return FALSE; -- 1.7.1 -- 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