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

Commit 8a5703c8 authored by Zhihai Xu's avatar Zhihai Xu Committed by Android (Google) Code Review
Browse files

Merge "bluetoothsocket fd leak, need close the file descriptor after detachFd."

parents ca5766cf 01771021
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -457,8 +457,10 @@ public final class BluetoothSocket implements Closeable {
                    mSocket.close();
                    mSocket = null;
                }
                if(mPfd != null)
                    mPfd.detachFd();
                if (mPfd != null) {
                    mPfd.close();
                    mPfd = null;
                }
           }
        }
    }