From 2df29701edc984c97c6e860aa0ad8e47654fd6d4 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 15 May 2016 16:01:58 +1000 Subject: [PATCH] #1866: Correct throttle --- proxy/src/main/java/net/md_5/bungee/ConnectionThrottle.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/ConnectionThrottle.java b/proxy/src/main/java/net/md_5/bungee/ConnectionThrottle.java index 207defad..4c9190e2 100644 --- a/proxy/src/main/java/net/md_5/bungee/ConnectionThrottle.java +++ b/proxy/src/main/java/net/md_5/bungee/ConnectionThrottle.java @@ -21,7 +21,7 @@ public class ConnectionThrottle public boolean throttle(InetAddress address) { - boolean isThrottled = throttle.getIfPresent( address ); + boolean isThrottled = throttle.getIfPresent( address ) != null; throttle.put( address, true ); return isThrottled;