am 569ff225: Fix BluetoothSocket file descriptor leak
* commit '569ff225a3879363bb31548a664161fee5270a0d': Fix BluetoothSocket file descriptor leak
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user