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

Commit 0495ddaa authored by Zach Johnson's avatar Zach Johnson Committed by Android Git Automerger
Browse files

am c6242459: Fix BluetoothSocket file descriptor leak

* commit 'c6242459':
  Fix BluetoothSocket file descriptor leak
parents 315e4fee 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();