From 5b40913b967f8fc959e7277d8f19b92b78ee9c99 Mon Sep 17 00:00:00 2001 From: Nikita Koksharov Date: Tue, 29 Jan 2019 17:16:13 +0300 Subject: [PATCH] refactoring --- .../main/java/org/redisson/command/CommandAsyncService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/redisson/src/main/java/org/redisson/command/CommandAsyncService.java b/redisson/src/main/java/org/redisson/command/CommandAsyncService.java index 66cc8c183..6f5b304c9 100644 --- a/redisson/src/main/java/org/redisson/command/CommandAsyncService.java +++ b/redisson/src/main/java/org/redisson/command/CommandAsyncService.java @@ -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; }