Start OnlineMonitor after initializing the Sites

This commit is contained in:
0xboobface 2019-01-23 17:40:46 +01:00
parent b548db4a66
commit c5474eb79b
1 changed files with 2 additions and 2 deletions

View File

@ -68,13 +68,13 @@ public class HttpServer {
LOG.info("HMAC authentication is enabled");
}
recorder = new LocalRecorder(config);
OnlineMonitor monitor = new OnlineMonitor(recorder);
monitor.start();
for (Site site : sites) {
if(site.isEnabled()) {
site.init();
}
}
OnlineMonitor monitor = new OnlineMonitor(recorder);
monitor.start();
startHttpServer();
}