public void join() throws InterruptedException {
    if (isAlive()) {
      serverThread.join();
    }
  }
Wait on the server-socket thread using {@link Thread#join()}
geode-tcp-server/src/main/java/org/apache/geode/distributed/internal/tcpserver/TcpServer.java