提交 0d4ec96d 编写于 作者: N Nikita Koksharov

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

上级 3a509310
......@@ -325,9 +325,12 @@ public class RedissonLock extends RedissonExpirable implements RLock {
if (threadId != null) {
task.removeThreadId(threadId);
}
if (threadId == null || task.hasNoThreads()) {
task.getTimeout().cancel();
Timeout timeout = task.getTimeout();
if (timeout != null) {
timeout.cancel();
}
EXPIRATION_RENEWAL_MAP.remove(getEntryName());
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册