cancel stats task on any state other than UNLOCKED

This commit is contained in:
Sebastian Stenzel
2019-09-06 15:20:32 +02:00
parent 68e69790cf
commit cb4717b770

View File

@@ -47,12 +47,10 @@ public class VaultStats {
LOG.debug("start recording stats");
updateService.restart();
break;
case LOCKED:
default:
LOG.debug("stop recording stats");
updateService.cancel();
break;
default:
break;
}
}