code: private void stop(boolean removeFromList) {
          synchronized (lock) {
              observing = false;
              willUpdate = false; // cancels the delayed update started by -databaseChanged
              if (query != null && query.getDatabase() != null && dbListenerToken != null) {
                  query.getDatabase().removeChangeListener(dbListenerToken);
                  dbListenerToken = null;
              }
              if (removeFromList && query != null && query.getDatabase() != null) {
                  query.getDatabase().getActiveLiveQueries().remove(this);
              }
              releaseResultSet();
          }
      }
docs: Stops observing database changes.