forked from Qortal/qortal
Actually respect 'autoUpdateEnabled' setting
This commit is contained in:
parent
743db9190e
commit
99e11d1f52
@ -332,9 +332,11 @@ public class Controller extends Thread {
|
||||
// LOGGER.info("Starting arbitrary-transaction data manager");
|
||||
// ArbitraryDataManager.getInstance().start();
|
||||
|
||||
// Auto-update service
|
||||
LOGGER.info("Starting auto-update");
|
||||
AutoUpdate.getInstance().start();
|
||||
// Auto-update service?
|
||||
if (Settings.getInstance().isAutoUpdateEnabled()) {
|
||||
LOGGER.info("Starting auto-update");
|
||||
AutoUpdate.getInstance().start();
|
||||
}
|
||||
|
||||
LOGGER.info(String.format("Starting API on port %d", Settings.getInstance().getApiPort()));
|
||||
try {
|
||||
@ -642,8 +644,10 @@ public class Controller extends Thread {
|
||||
LOGGER.info("Shutting down API");
|
||||
ApiService.getInstance().stop();
|
||||
|
||||
LOGGER.info("Shutting down auto-update");
|
||||
AutoUpdate.getInstance().shutdown();
|
||||
if (Settings.getInstance().isAutoUpdateEnabled()) {
|
||||
LOGGER.info("Shutting down auto-update");
|
||||
AutoUpdate.getInstance().shutdown();
|
||||
}
|
||||
|
||||
// Arbitrary transaction data manager
|
||||
// LOGGER.info("Shutting down arbitrary-transaction data manager");
|
||||
|
Loading…
Reference in New Issue
Block a user