refactoring

pull/1933/head
Nikita Koksharov 6 years ago
parent 76bd80eb08
commit 5b40913b96

@ -938,8 +938,7 @@ public class CommandAsyncService implements CommandAsyncExecutor {
TimerTask timeoutTask = new TimerTask() {
@Override
public void run(Timeout timeout) throws Exception {
if (!details.getAttemptPromise().isDone()
&& details.getAttempt() < connectionManager.getConfig().getRetryAttempts()) {
if (details.getAttempt() < connectionManager.getConfig().getRetryAttempts()) {
if (!details.getAttemptPromise().cancel(false)) {
return;
}

Loading…
Cancel
Save