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

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

Merge "Revert "Throw an IOException on EOF instead of returning error"" into main

parents 72aef4ad b4d64af3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -978,7 +978,7 @@ public final class BluetoothSocket implements Closeable {
            if (mL2capBuffer.remaining() == 0) {
                if (VDBG) Log.v(TAG, "l2cap buffer empty, refilling...");
                if (fillL2capRxBuffer() == -1) {
                    throw new IOException("bt socket closed, read return: " + ret);
                    return -1;
                }
            }
            if (bytesToRead > mL2capBuffer.remaining()) {