#1866: Correct throttle

This commit is contained in:
md_5 2016-05-15 16:01:58 +10:00
parent d9a8311b8e
commit 2df29701ed

View File

@ -21,7 +21,7 @@ public class ConnectionThrottle
public boolean throttle(InetAddress address) public boolean throttle(InetAddress address)
{ {
boolean isThrottled = throttle.getIfPresent( address ); boolean isThrottled = throttle.getIfPresent( address ) != null;
throttle.put( address, true ); throttle.put( address, true );
return isThrottled; return isThrottled;