[DO NOT MERGE] Prevent FDs from being leaked when accepted sockets are closed am: 85bc33a8f4
am: 46442d1be1
Change-Id: I50616eafb788247b103911bd5ac899899e3ba47c
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user