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

Commit 8be4dc7e authored by Ajay Panicker's avatar Ajay Panicker Committed by android-build-merger
Browse files

[DO NOT MERGE] Prevent FDs from being leaked when accepted sockets are closed am: 85bc33a8

am: 46442d1b

Change-Id: I50616eafb788247b103911bd5ac899899e3ba47c
parents fe616288 46442d1b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -191,6 +191,7 @@ public final class BluetoothSocket implements Closeable {
            as.close();
            throw new IOException("bt socket acept failed");
        }
        as.mPfd = new ParcelFileDescriptor(fds[0]);
        as.mSocket = new LocalSocket(fds[0]);
        as.mSocketIS = as.mSocket.getInputStream();
        as.mSocketOS = as.mSocket.getOutputStream();