OSDN Git Service

Backed out workaround for RFCOMM socket close issue when BT is turning off
authorfredc <fredc@broadcom.com>
Thu, 26 Apr 2012 05:43:51 +0000 (22:43 -0700)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Tue, 17 Jul 2012 05:04:22 +0000 (22:04 -0700)
Change-Id: I793fa2a0fa0127b6ff70aeb448c97c3cc9154d6f

src/com/android/bluetooth/opp/BluetoothOppRfcommListener.java

index ea38a3c..1c6292f 100755 (executable)
@@ -213,7 +213,8 @@ public class BluetoothOppRfcommListener {
             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;