Backed out workaround for RFCOMM socket close issue when BT is turning off
Change-Id: I793fa2a0fa0127b6ff70aeb448c97c3cc9154d6f
diff --git a/src/com/android/bluetooth/opp/BluetoothOppRfcommListener.java b/src/com/android/bluetooth/opp/BluetoothOppRfcommListener.java
index ea38a3c..1c6292f 100755
--- a/src/com/android/bluetooth/opp/BluetoothOppRfcommListener.java
+++ b/src/com/android/bluetooth/opp/BluetoothOppRfcommListener.java
@@ -213,7 +213,8 @@
try {
mSocketAcceptThread.interrupt();
if (V) Log.v(TAG, "waiting for thread to terminate");
- mSocketAcceptThread.join(JOIN_TIMEOUT_MS);
+ //mSocketAcceptThread.join(JOIN_TIMEOUT_MS);
+ mSocketAcceptThread.join();
if (V) Log.v(TAG, "done waiting for thread to terminate");
mSocketAcceptThread = null;
mCallback = null;