private void stopUpdater() {
    boolean isSelfDestroying = Thread.currentThread() == this;
    stopProcessing();

    // need to also close the socket for this interrupt to wakeup
    // the thread. This fixes bug 35691.

    if (isAlive()) {
      if (logger.isDebugEnabled()) {
        logger.debug("{}: Stopping {}", location, this);
      }

      if (!isSelfDestroying) {
        interrupt();
        try {
          if (socket != null) {
            socket.close();
          }
        } catch (IOException e) {
          if (logger.isDebugEnabled()) {
            logger.debug(e.getMessage(), e);
          }
        }
      } // !isSelfDestroying
    } // isAlive
  }
Stops the updater. It will wait for a while for the thread to finish to try to prevent
duplicates. Note: this method is not named stop because this is a Thread which has a deprecated
stop method.
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/CacheClientUpdater.java