ARTEMIS-3145 ensure lock validity before releasing
This commit is contained in:
parent
bafa0fbb3c
commit
ec52682697
|
@ -355,7 +355,7 @@ public class FileLockNodeManager extends FileBasedNodeManager {
|
|||
result = bb.get(0);
|
||||
}
|
||||
} finally {
|
||||
if (lock != null) {
|
||||
if (lock != null && lock.isValid()) {
|
||||
lock.release();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue