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

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

Merge "Revert "Bluetooth stopped working in master - "bad file descriptor"""

parents d4360f0c 560a5231
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -461,13 +461,8 @@ public final class BluetoothSocket implements Closeable {
                    mSocket.close();
                    mSocket = null;
                }
                if(mPfd != null) {
                    try {
                if(mPfd != null)
                    mPfd.detachFd();
                    } catch (IllegalArgumentException e) {
                        Log.w(TAG, "ignore IllegalArgumentException");
                    }
                }
           }
        }
    }