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

Commit b01210f0 authored by Zhihai Xu's avatar Zhihai Xu
Browse files

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

This reverts commit 626db853.

Change-Id: I9ffaf5580924c150145d37ec38ffde602199b7e2
parent 626db853
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");
                    }
                }
           }
        }
    }