private void stopDetection()

in rx-central-ble/src/main/java/com/uber/rxcentralble/core/CoreBluetoothDetector.java [102:114]


  private void stopDetection() {
    if (BluetoothAdapter.getDefaultAdapter() != null) {
      try {
        context.unregisterReceiver(bluetoothStateReceiver);
      } catch (IllegalArgumentException e) {
        if (RxCentralLogger.isError()) {
          RxCentralLogger.error("stopDetection - Unregister receiver failed!");
        }
      }
    }

    bluetoothEnabledRelay.accept(Capability.UNSUPPORTED);
  }