Loading android/app/src/com/android/bluetooth/ObexServerSockets.java +5 −2 Original line number Diff line number Diff line Loading @@ -241,9 +241,12 @@ public class ObexServerSockets { * Signal to the {@link IObexConnectionHandler} that an error have occurred. */ synchronized private void onAcceptFailed() { Log.w(TAG,"onAcceptFailed() calling shutdown..."); mConHandler.onAcceptFailed(); shutdown(false); BluetoothAdapter mAdapter = BluetoothAdapter.getDefaultAdapter(); if ((mAdapter != null) && (mAdapter.getState() == BluetoothAdapter.STATE_ON)) { Log.d(TAG, "onAcceptFailed() calling shutdown..."); mConHandler.onAcceptFailed(); } } /** Loading Loading
android/app/src/com/android/bluetooth/ObexServerSockets.java +5 −2 Original line number Diff line number Diff line Loading @@ -241,9 +241,12 @@ public class ObexServerSockets { * Signal to the {@link IObexConnectionHandler} that an error have occurred. */ synchronized private void onAcceptFailed() { Log.w(TAG,"onAcceptFailed() calling shutdown..."); mConHandler.onAcceptFailed(); shutdown(false); BluetoothAdapter mAdapter = BluetoothAdapter.getDefaultAdapter(); if ((mAdapter != null) && (mAdapter.getState() == BluetoothAdapter.STATE_ON)) { Log.d(TAG, "onAcceptFailed() calling shutdown..."); mConHandler.onAcceptFailed(); } } /** Loading