Skip to content

Commit cd73bd8

Browse files
authored
RedisLockRegistry stopRenew not thread safe #10446
Closes #10446 + remove dunnecassary comment Signed-off-by: PiotrDuz <[email protected]>
1 parent a6518c4 commit cd73bd8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

spring-integration-redis/src/main/java/org/springframework/integration/redis/util/RedisLockRegistry.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,6 @@ protected final boolean renew(long expireAfter) {
600600
return res;
601601
}
602602

603-
/* This method can be called by more than 1 thread, thus we need to make sure that it is safe*/
604603
protected final void stopRenew() {
605604
ScheduledFuture<?> renewFutureToCancel = this.renewFuture;
606605
if (renewFutureToCancel != null) {

0 commit comments

Comments
 (0)