mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-07 16:49:07 +00:00
force logout on timeout
This commit is contained in:
@@ -177,7 +177,7 @@ public class Constants {
|
|||||||
"shade", "skeleton", "skeleton brute", "skeleton thug", "skeleton warload", "summoned zombie",
|
"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"
|
"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 CYCLE_TIME = 600;
|
||||||
public final static int BUFFER_SIZE = 10000;
|
public final static int BUFFER_SIZE = 10000;
|
||||||
|
|
||||||
|
|||||||
@@ -1111,7 +1111,8 @@ public class Client extends Player {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (timeOutCounter > Constants.TIMEOUT) {
|
if (timeOutCounter > Constants.TIMEOUT) {
|
||||||
disconnected = true;
|
if (!isBot)
|
||||||
|
logout(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
timeOutCounter++;
|
timeOutCounter++;
|
||||||
|
|||||||
Reference in New Issue
Block a user