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

Commit 95efe969 authored by Zach Johnson's avatar Zach Johnson Committed by Android Git Automerger
Browse files

am eca5bf64: am 72407cb5: am 19ab3b47: am c6242459: Fix BluetoothSocket file descriptor leak

* commit 'eca5bf647ea3374e5fcb576f7d2df8fb33422a24':
  Fix BluetoothSocket file descriptor leak
parents 187e3e10 c6242459
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -240,6 +240,8 @@ 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();