#1866: Correct throttle
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user