Don't stop the stopwatch if it's not running.
This commit is contained in:
parent
662a697d03
commit
099fd999ee
1 changed files with 3 additions and 1 deletions
|
@ -531,7 +531,9 @@ public class UnitOfWork implements AutoCloseable {
|
|||
});
|
||||
|
||||
if (parent == null) {
|
||||
if (elapsedTime.isRunning()) {
|
||||
elapsedTime.stop();
|
||||
}
|
||||
if (LOG.isInfoEnabled()) {
|
||||
LOG.info(logTimers("aborted"));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue