We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
stopRenew
1 parent dbfc6d7 commit e3339a9Copy full SHA for e3339a9
spring-integration-redis/src/main/java/org/springframework/integration/redis/util/RedisLockRegistry.java
@@ -599,8 +599,9 @@ protected final boolean renew() {
599
}
600
601
protected final void stopRenew() {
602
- if (this.renewFuture != null) {
603
- this.renewFuture.cancel(true);
+ ScheduledFuture<?> renewFutureToCancel = this.renewFuture;
+ if (renewFutureToCancel != null) {
604
+ renewFutureToCancel.cancel(true);
605
this.renewFuture = null;
606
607
0 commit comments