sbStackCrawlThread is null during first cleanProfiles() run at startup.

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4152 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
fuchsi 18 years ago
parent 70614385ef
commit 508de558f7

@ -1630,7 +1630,8 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser
*/
public boolean cleanProfiles() throws InterruptedException {
if ((sbQueue.size() > 0) || (cacheLoader.size() > 0) ||
(sbStackCrawlThread.size() > 0) || (noticeURL.notEmpty()))
(sbStackCrawlThread != null && sbStackCrawlThread.size() > 0) ||
(noticeURL.notEmpty()))
return false;
final Iterator iter = profilesActiveCrawls.profiles(true);
plasmaCrawlProfile.entry entry;

Loading…
Cancel
Save