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