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

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

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

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