File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
src/main/java/io/lettuce/core/protocol Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -884,12 +884,12 @@ private void onProtectedMode(String message) {
884
884
885
885
endpoint .notifyException (exception );
886
886
887
+ stack .forEach (cmd -> cmd .completeExceptionally (exception ));
888
+ stack .clear ();
889
+
887
890
if (channel != null ) {
888
891
channel .disconnect ();
889
892
}
890
-
891
- stack .forEach (cmd -> cmd .completeExceptionally (exception ));
892
- stack .clear ();
893
893
}
894
894
895
895
/**
Original file line number Diff line number Diff line change @@ -518,12 +518,6 @@ public void notifyException(Throwable t) {
518
518
if (t instanceof RedisConnectionException && RedisConnectionException .isProtectedMode (t .getMessage ())) {
519
519
520
520
connectionError = t ;
521
-
522
- if (connectionWatchdog != null ) {
523
- connectionWatchdog .setListenOnChannelInactive (false );
524
- connectionWatchdog .setReconnectSuspended (false );
525
- }
526
-
527
521
doExclusive (this ::drainCommands ).forEach (cmd -> cmd .completeExceptionally (t ));
528
522
}
529
523
You can’t perform that action at this time.
0 commit comments