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.
1 parent 0a26563 commit 87de896Copy full SHA for 87de896
spring-integration-redis/src/main/java/org/springframework/integration/redis/util/RedisLockRegistry.java
@@ -598,9 +598,11 @@ protected final boolean renew(long expireAfter) {
598
return res;
599
}
600
601
+ /* This method can be called by more than 1 thread, thus we need to make sure that it is safe*/
602
protected final void stopRenew() {
- if (this.renewFuture != null) {
603
- this.renewFuture.cancel(true);
+ ScheduledFuture<?> renewFutureToCancel = this.renewFuture;
604
+ if (renewFutureToCancel != null) {
605
+ renewFutureToCancel.cancel(true);
606
this.renewFuture = null;
607
608
0 commit comments