コード例 #1
0
  private void shutdown() {
    game.setGameState(GameThread.STATE_STOPPED);

    try {
      /* Close the socket so the listener thread will stop blocking */
      socket.close();
    } catch (IOException e) {
      e.printStackTrace();
    }
  }