|
@@ -76,7 +76,7 @@ public class RedisLockUtil {
|
|
|
*/
|
|
*/
|
|
|
public void unlock(String lockKey) {
|
|
public void unlock(String lockKey) {
|
|
|
RLock lock = redissonClient.getLock(lockKey);
|
|
RLock lock = redissonClient.getLock(lockKey);
|
|
|
- if (lock.isHeldByCurrentThread()) {
|
|
|
|
|
|
|
+ if (lock.isHeldByCurrentThread() && lock.isLocked()) {
|
|
|
lock.unlock();
|
|
lock.unlock();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|