Don't stop the stopwatch if it's not running.

This commit is contained in:
Greg Burd 2018-04-04 14:34:59 -04:00
parent 662a697d03
commit 099fd999ee

View file

@ -531,7 +531,9 @@ public class UnitOfWork implements AutoCloseable {
});
if (parent == null) {
elapsedTime.stop();
if (elapsedTime.isRunning()) {
elapsedTime.stop();
}
if (LOG.isInfoEnabled()) {
LOG.info(logTimers("aborted"));
}