force logout on timeout

This commit is contained in:
RedSparr0w
2019-11-22 16:40:18 +13:00
parent 447fc738d9
commit 6e3f76329a
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -177,7 +177,7 @@ public class Constants {
"shade", "skeleton", "skeleton brute", "skeleton thug", "skeleton warload", "summoned zombie",
"skorge", "tortured soul", "undead chicken", "undead cow", "undead one", "undead troll", "zombie", "zombie rat", "zogre"
};
public final static int TIMEOUT = 20;
public final static int TIMEOUT = 60;
public final static int CYCLE_TIME = 600;
public final static int BUFFER_SIZE = 10000;
@@ -1111,7 +1111,8 @@ public class Client extends Player {
}
if (timeOutCounter > Constants.TIMEOUT) {
disconnected = true;
if (!isBot)
logout(true);
}
timeOutCounter++;