Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5485caeb authored by Smriti Gupta's avatar Smriti Gupta Committed by Ricardo Cerqueira
Browse files

OBEX: Handling GET operation properly

This change handles GET operation properly whenever
Input stream is getting aborted in between.

CRs-fixed: 668890
Change-Id: Idcb4ea04abb57353af5ab1fef050b3a36579892e
parent 4a7889cc
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -723,12 +723,14 @@ public final class ClientOperation implements Operation, BaseStream {
                    mReplyHeader.responseCode = ResponseCodes.OBEX_HTTP_CONTINUE;
                }

                while (mReplyHeader.responseCode == ResponseCodes.OBEX_HTTP_CONTINUE) {
                while ((mReplyHeader.responseCode == ResponseCodes.OBEX_HTTP_CONTINUE)
                    && !mOperationDone) {
                    if (!sendRequest(0x83)) {
                        break;
                    }
                }
                while (mReplyHeader.responseCode == ResponseCodes.OBEX_HTTP_CONTINUE) {
                while ((mReplyHeader.responseCode == ResponseCodes.OBEX_HTTP_CONTINUE) &&
                    !mOperationDone) {
                    mParent.sendRequest(0x83, null, mReplyHeader, mPrivateInput);
                }
                mOperationDone = true;