mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
sleep initially for one minute before starting threads
This commit is contained in:
@@ -43,6 +43,14 @@ public class FeedRefreshWorker {
|
|||||||
|
|
||||||
public void start(MutableBoolean running, String threadName) {
|
public void start(MutableBoolean running, String threadName) {
|
||||||
log.info("{} starting", 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()) {
|
while (running.isTrue()) {
|
||||||
Feed feed = null;
|
Feed feed = null;
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user