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

Commit 72407cb5 authored by Zach Johnson's avatar Zach Johnson Committed by Android Git Automerger
Browse files

am 19ab3b47: am 569ff225: Fix BluetoothSocket file descriptor leak

* commit '19ab3b47':
  Fix BluetoothSocket file descriptor leak
parents 5b93f2d9 19ab3b47
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();