diff --git a/src/main/java/com/github/blagerweij/sessionlock/SessionLockService.java b/src/main/java/com/github/blagerweij/sessionlock/SessionLockService.java index 90a228a..3a08bda 100644 --- a/src/main/java/com/github/blagerweij/sessionlock/SessionLockService.java +++ b/src/main/java/com/github/blagerweij/sessionlock/SessionLockService.java @@ -116,7 +116,13 @@ public void forceReleaseLock() throws LockException { @Override public void reset() { - hasChangeLogLock = false; + try { + if (hasChangeLogLock) { + forceReleaseLock(); + } + } catch (LockException e) { + getLog(getClass()).debug("Could not reset lock, ignoring", e); + } } @Override