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

Commit 8e185e48 authored by Hemant Gupta's avatar Hemant Gupta Committed by Android Git Automerger
Browse files

am 50ba032f: OBEX: Handle GET operation properly

* commit '50ba032f':
  OBEX: Handle GET operation properly
parents c8bb2211 50ba032f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -784,12 +784,12 @@ 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(ObexHelper.OBEX_OPCODE_GET_FINAL)) {
                        break;
                    }
                }
                while (mReplyHeader.responseCode == ResponseCodes.OBEX_HTTP_CONTINUE) {
                while (mReplyHeader.responseCode == ResponseCodes.OBEX_HTTP_CONTINUE && !mOperationDone) {
                    mParent.sendRequest(ObexHelper.OBEX_OPCODE_GET_FINAL, null,
                            mReplyHeader, mPrivateInput, false);
                    // Regardless of the SRM state, wait for the response.