From: Hendrik B. <nh...@us...> - 2011-11-24 21:47:51
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/player In directory vz-cvs-4.sog:/tmp/cvs-serv3172/src/games/stendhal/server/entity/player Modified Files: AfkTimeouter.java Log Message: fixed unexpected disconnects caused by confusing milliseconds with seconds (fixes #) Index: AfkTimeouter.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/player/AfkTimeouter.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AfkTimeouter.java 16 Nov 2011 19:37:46 -0000 1.1 --- AfkTimeouter.java 24 Nov 2011 21:47:49 -0000 1.2 *************** *** 55,59 **** Set<Player> toDisconnect = new HashSet<Player>(); for (Player player : players) { ! if (System.currentTimeMillis() - player.getLastClientActionTimestamp() > afkDisconnect) { if (player.getAdminLevel() < 1000) { toDisconnect.add(player); --- 55,59 ---- Set<Player> toDisconnect = new HashSet<Player>(); for (Player player : players) { ! if (System.currentTimeMillis() - player.getLastClientActionTimestamp() > afkDisconnect * 1000) { if (player.getAdminLevel() < 1000) { toDisconnect.add(player); |