GUAC-830: Fix logic error in tryAdd().

This commit is contained in:
Michael Jumper
2015-08-21 18:51:15 -07:00
parent cc9f1987b4
commit c0f05ba909

View File

@@ -160,7 +160,7 @@ public class ConfigurableGuacamoleTunnelService
int count = multiset.count(value);
// Bail out if the maximum has already been reached
if (count >= max || max == 0)
if (count >= max && max != 0)
return false;
// Attempt to add one more value