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

Commit c748717c authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents d69d0128 32bffc14
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -410,8 +410,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
@@ -420,6 +418,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;