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

Commit 243cc94e authored by Ajay Panicker's avatar Ajay Panicker Committed by android-build-merger
Browse files

Prevent OPP connections from staying open forever

am: 8528cc92

Change-Id: Ia904128288f7a9a44b6aa4a684073a6ae1150b37
parents 0cd29128 8528cc92
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -415,13 +415,13 @@ public class BluetoothOppObexClientSession implements BluetoothOppObexSession {
                        outputStream.write(buffer, 0, readLength);

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

                        mCallback.removeMessages(BluetoothOppObexSession.MSG_CONNECT_TIMEOUT);
                        synchronized (this) {
                            mWaitingForRemote = false;
                        }
                        /* check remote accept or reject */
                        responseCode = putOperation.getResponseCode();

                        if (responseCode == ResponseCodes.OBEX_HTTP_CONTINUE
                                || responseCode == ResponseCodes.OBEX_HTTP_OK) {