fixed wrong method call

This commit is contained in:
ormizj
2023-09-15 01:04:22 +03:00
committed by GitHub
parent c744935dd0
commit c145a53688

View File

@@ -65,7 +65,7 @@ public class ExpLogger {
private static void startExpLogger() {
schdExctr.schedule(saveExpLoggerToDBRunnable, EXP_LOGGER_THREAD_SLEEP_DURATION_SECONDS, SECONDS);
schdExctr.scheduleWithFixedDelay(saveExpLoggerToDBRunnable, EXP_LOGGER_THREAD_SLEEP_DURATION_SECONDS, EXP_LOGGER_THREAD_SLEEP_DURATION_SECONDS, SECONDS);
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
stopExpLogger();
}));
@@ -90,4 +90,4 @@ public class ExpLogger {
startExpLogger();
}
}
}
}