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

Commit 58338ecd authored by Ashwini Munigala's avatar Ashwini Munigala
Browse files

Bluetooth: Fix RfComm socket cursor exceptions in STRICT MODE.

Perform ParcelFileDescriptor close after detach to avoid bluetooth
socket leaks in strict mode.

CRs-fixed: 572214

Change-Id: Ib0d7d08e17aa147573e9893af9b605fd42420500
parent 17da2ebd
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -517,8 +517,11 @@ public final class BluetoothSocket implements Closeable {
                    mSocket.close();
                    mSocket = null;
                }
                if(mPfd != null)
                if(mPfd != null) {
                    mPfd.detachFd();
                    mPfd.close();
                    mPfd = null;
                }
           }
        }
    }