private void checkForSlowerScanMode()

in rx-central-ble/src/main/java/com/uber/rxcentralble/core/scanners/ThrottledLollipopScanner.java [227:241]


  private void checkForSlowerScanMode(long timestamp) {
    if (scanModeMap.containsKey(timestamp)) {
      scanModeMap.remove(timestamp);
      int fastestLatency = -1;
      for (int latency : scanModeMap.values()) {
        if (latency > fastestLatency) {
          fastestLatency = latency;
        }
      }

      if (scanModeRelay.getValue() > fastestLatency) {
        scanModeRelay.accept(fastestLatency);
      }
    }
  }