[freenet-cvs] r17974 - trunk/freenet/src/freenet/node

nextgens at freenetproject.org nextgens at freenetproject.org
Sat Feb 16 02:51:21 UTC 2008


Author: nextgens
Date: 2008-02-16 02:51:20 +0000 (Sat, 16 Feb 2008)
New Revision: 17974

Modified:
   trunk/freenet/src/freenet/node/NodeStats.java
Log:
Use the executor to start NodePinger at priority = NORMAL otherwise it will fail to queue jobs (its priority would be MAX)

Modified: trunk/freenet/src/freenet/node/NodeStats.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeStats.java	2008-02-16 02:46:05 UTC (rev 17973)
+++ trunk/freenet/src/freenet/node/NodeStats.java	2008-02-16 02:51:20 UTC (rev 17974)
@@ -356,7 +356,11 @@
 	}
 
 	public void start() throws NodeInitException {
-		nodePinger.start();
+		node.executor.execute(new Runnable() {
+			public void run() {
+				nodePinger.start();
+			}
+		}, "Starting NodePinger");
 		persister.start();
 		node.getTicker().queueTimedJob(throttledPacketSendAverageIdleUpdater, CHECK_THROTTLE_TIME);
 	}




More information about the cvs mailing list