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

Commit af39b9e0 authored by koh.changseok's avatar koh.changseok Committed by android-build-merger
Browse files

Merge "OPP: Have OBEX add 'End of Body' for a small file" am: c748717c am:...

Merge "OPP: Have OBEX add 'End of Body' for a small file" am: c748717c am: 995426f6 am: ac03bb4d
am: 51d8b92f

Change-Id: I0a0c03ae11c670ce9b0c0ace2e92fc03a33f0b73
parents 41aab7b6 51d8b92f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -415,8 +415,6 @@ public class BluetoothOppObexClientSession implements BluetoothOppObexSession {
                        outputStream.write(buffer, 0, readLength);

                        position += readLength;
                        /* check remote accept or reject */
                        responseCode = putOperation.getResponseCode();

                        if (position == fileInfo.mLength) {
                            // if file length is smaller than buffer size, only one packet
@@ -425,6 +423,9 @@ public class BluetoothOppObexClientSession implements BluetoothOppObexSession {
                            outputStream = null;
                        }

                        /* check remote accept or reject */
                        responseCode = putOperation.getResponseCode();

                        mCallback.removeMessages(BluetoothOppObexSession.MSG_CONNECT_TIMEOUT);
                        synchronized (this) {
                            mWaitingForRemote = false;