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

Commit 5c4a9224 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: af10a6f3 am: 1fe3a816

am: 9a0750a5

Change-Id: I0801ab91965ae520bcd16acae31af77cdeadd05f
parents 94e450f3 9a0750a5
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;