Added explanatory comments on kick behaviour

This commit is contained in:
Jaime Martinez Rincon 2017-01-26 13:50:07 +01:00
parent b54ed5c5d5
commit cc4819b57c

View File

@ -89,6 +89,8 @@ public class ServerKickListener implements Listener {
ServerSection target = task.call();
if (target != null) {
//Do not try to reconnect to the server we are kicked from
//This can happen when the sections are working on recursive mode (with rules)
//Example: You are kicked to a server, you go to another server in the same section
List<ServerInfo> servers = new ArrayList<>();
servers.addAll(target.getServers());