Skip to content

Commit c17b6af

Browse files
ggivoCopilot
andauthored
Update src/main/java/redis/clients/jedis/mcf/CircuitBreakerCommandExecutor.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a1a2fbb commit c17b6af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/redis/clients/jedis/mcf/CircuitBreakerCommandExecutor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ private boolean shouldRetryFailedInflightCommands() {
7575
}
7676

7777
private boolean isActiveCluster(Cluster cluster) {
78-
return provider.getCluster() != cluster;
78+
Cluster activeCluster = provider.getCluster();
79+
return activeCluster != null && !activeCluster.equals(cluster);
7980
}
8081

8182
/**

0 commit comments

Comments
 (0)