Fix infinite loop in RandomBalancer
@@ -4421,6 +4421,9 @@ public class GridNioServer<T> {
/** {@inheritDoc} */
@Override public void run() {
+ if (clientWorkers.size() < 2)
+ return;
+
ThreadLocalRandom rnd = ThreadLocalRandom.current();
int w1 = rnd.nextInt(clientWorkers.size());
