code: public synchronized void onOpen() {
          if (state == State.WAITING || state == State.SCANNING)
              throw new IllegalStateException("Do not call onOpen if not closed before");
          currentDataUsed = true;
          state = State.WAITING;
      }
docs: Call this in {@link org.microg.nlp.api.LocationBackendService#onOpen()}.