Author: toad
Date: 2008-02-28 18:46:54 +0000 (Thu, 28 Feb 2008)
New Revision: 18217
Modified:
trunk/plugins/XMLSpider/XMLSpider.java
Log:
Start through executor rather than making a Thread
Modified: trunk/plugins/XMLSpider/XMLSpider.java
===================================================================
--- trunk/plugins/XMLSpider/XMLSpider.java 2008-02-28 18:26:19 UTC (rev
18216)
+++ trunk/plugins/XMLSpider/XMLSpider.java 2008-02-28 18:46:54 UTC (rev
18217)
@@ -916,16 +916,14 @@
Logger.error(this, "Could not create default index
directory "+e.toString(), e);
}
//startPlugin();
- Thread starterThread = new Thread("Spider Plugin Starter") {
+ pr.getNode().executor.execute(new Runnable() {
public void run() {
try{
Thread.sleep(30 * 1000); // Let the
node start up
} catch (InterruptedException e){}
startSomeRequests();
}
- };
- starterThread.setDaemon(true);
- starterThread.start();
+ }, "Spider Plugin Starter");
}
/**