sleep initially for one minute before starting threads

This commit is contained in:
Athou
2013-05-21 12:57:07 +02:00
parent 23240f2c93
commit 6cfa275aa1

View File

@@ -43,6 +43,14 @@ public class FeedRefreshWorker {
public void start(MutableBoolean running, String threadName) {
log.info("{} starting", threadName);
try {
// sleeping for one minute before starting, let everything settle
Thread.sleep(60000);
} catch (InterruptedException e) {
log.error(threadName + e.getMessage(), e);
}
while (running.isTrue()) {
Feed feed = null;
try {