mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-830: Fix logic error in tryAdd().
This commit is contained in:
@@ -160,7 +160,7 @@ public class ConfigurableGuacamoleTunnelService
|
|||||||
int count = multiset.count(value);
|
int count = multiset.count(value);
|
||||||
|
|
||||||
// Bail out if the maximum has already been reached
|
// Bail out if the maximum has already been reached
|
||||||
if (count >= max || max == 0)
|
if (count >= max && max != 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Attempt to add one more value
|
// Attempt to add one more value
|
||||||
|
Reference in New Issue
Block a user