10341035103610371038103910401041104210431044
@Override public void quit(UUID playerId) { if (state != null) { Player player = state.getPlayer(playerId); if (player != null && player.isInGame()) { player.quit(this); } } } @Override
284285286287288289290291292293294
callExecutor.execute( new Runnable() { @Override public void run() { try { player.quit(game); } catch (Exception ex) { if (ex != null) { // It seems this can happen if two threads try to end the game at the exact same time (one wins and one ends here) logger.fatal("Game session game quit exception " + (ex.getMessage() == null ? "null":ex.getMessage())); logger.debug("- gameId:" + game.getId() +" playerId: " + playerId);