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

Commit 1903a732 authored by Jason Simmons's avatar Jason Simmons Committed by Android (Google) Code Review
Browse files

Merge "Avoid calling BluetoothSocket.destroyNative twice" into ics-aah

parents b89ce434 34b2feb0
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -242,8 +242,10 @@ public final class BluetoothSocket implements Closeable {
        // abortNative(), so this lock should immediately acquire
        mLock.writeLock().lock();
        try {
            if (mSocketState != SocketState.CLOSED) {
                mSocketState = SocketState.CLOSED;
                destroyNative();
            }
        } finally {
            mLock.writeLock().unlock();
        }