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 6746508 commit 17beaefCopy full SHA for 17beaef
spring-integration-redis/src/main/java/org/springframework/integration/redis/util/RedisLockRegistry.java
@@ -601,8 +601,9 @@ protected final boolean renew(long expireAfter) {
601
}
602
603
protected final void stopRenew() {
604
- if (this.renewFuture != null) {
605
- this.renewFuture.cancel(true);
+ ScheduledFuture<?> renewFutureToCancel = this.renewFuture;
+ if (renewFutureToCancel != null) {
606
+ renewFutureToCancel.cancel(true);
607
this.renewFuture = null;
608
609
0 commit comments