executeAsync freeze fixed. #233

pull/236/merge
Nikita 10 years ago
parent 8bdd6cf67a
commit 481b2e969c

@ -158,8 +158,10 @@ public class CommandBatchExecutorService extends CommandExecutorService {
commands = null;
}
});
AtomicInteger slots = new AtomicInteger(commands.size());
for (java.util.Map.Entry<Integer, Entry> e : commands.entrySet()) {
execute(e.getValue(), e.getKey(), voidPromise, new AtomicInteger(commands.size()), 0);
execute(e.getValue(), e.getKey(), voidPromise, slots, 0);
}
return promise;
}

Loading…
Cancel
Save