Fixed - RLock.unlock() method hangs forever. #2355

pull/2368/head
Nikita Koksharov 5 years ago
parent 3a509310c9
commit 0d4ec96df6

@ -327,7 +327,10 @@ public class RedissonLock extends RedissonExpirable implements RLock {
} }
if (threadId == null || task.hasNoThreads()) { if (threadId == null || task.hasNoThreads()) {
task.getTimeout().cancel(); Timeout timeout = task.getTimeout();
if (timeout != null) {
timeout.cancel();
}
EXPIRATION_RENEWAL_MAP.remove(getEntryName()); EXPIRATION_RENEWAL_MAP.remove(getEntryName());
} }
} }

Loading…
Cancel
Save