From 0500b1179ecc23397b59165620c5ded7d0c623a2 Mon Sep 17 00:00:00 2001 From: apfelmaennchen Date: Tue, 5 Aug 2008 05:50:15 +0000 Subject: [PATCH] added a 2 min start up delay to serverBusyThread autoReCrawl to avoid a Null Pointer Exception... git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5035 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/data/bookmarksDB.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/de/anomic/data/bookmarksDB.java b/source/de/anomic/data/bookmarksDB.java index d4d1e13b0..d8aac5ffc 100644 --- a/source/de/anomic/data/bookmarksDB.java +++ b/source/de/anomic/data/bookmarksDB.java @@ -129,10 +129,10 @@ public class bookmarksDB { plasmaSwitchboard sb = plasmaSwitchboard.getSwitchboard(); this.autoReCrawl = new serverInstantBusyThread(this, "autoReCrawl", null, null); long sleepTime = Long.parseLong(sb.getConfig("autoReCrawl_idlesleep" , SLEEP_TIME)); - sb.deployThread("autoReCrawl", "autoReCrawl Scheduler", "simple scheduler for automatic re-crawls of bookmarked urls", null, autoReCrawl, -1, + sb.deployThread("autoReCrawl", "autoReCrawl Scheduler", "simple scheduler for automatic re-crawls of bookmarked urls", null, autoReCrawl, 120000, sleepTime, sleepTime, Long.parseLong(sb.getConfig("autoReCrawl_memprereq" , "-1")) ); - serverLog.logInfo("BOOKMARKS", "autoReCrawl - thread initialized checking every "+(sleepTime/1000/60)+" minutes for recrawls"); + serverLog.logInfo("BOOKMARKS", "autoReCrawl - serverBusyThread initialized checking every "+(sleepTime/1000/60)+" minutes for recrawls"); } // -----------------------------------------------------