Originally Posted by
Notepad
find this and replace with this
find this
Code:
throttleFilter = new ConnectionThrottleFilter(Config.CONNECTION_DELAY);
and replace that metod with this
Code:
throttleFilter = new ConnectionThrottleFilter(Config.CONNECTION_DELAY);
sac.getFilterChain().addFirst("throttleFilter", throttleFilter);
try {
acceptor.bind(new InetSocketAddress(serverlistenerPort), connectionHandler, sac);
} catch (BindException e) {
System.out.println("[WARNING] The port is already in use, port bind failure.");
System.out.println("[WARNING] The server is not running!");
} catch (IOException e) {
e.printStackTrace();
}
}