[freenet-cvs] r15733 - trunk/freenet/src/freenet/pluginmanager

bombe at freenetproject.org bombe at freenetproject.org
Sat Nov 10 02:17:50 UTC 2007


Author: bombe
Date: 2007-11-10 02:17:49 +0000 (Sat, 10 Nov 2007)
New Revision: 15733

Modified:
   trunk/freenet/src/freenet/pluginmanager/PluginManager.java
Log:
use a new plugin respirator for each plugin

Modified: trunk/freenet/src/freenet/pluginmanager/PluginManager.java
===================================================================
--- trunk/freenet/src/freenet/pluginmanager/PluginManager.java	2007-11-09 22:47:04 UTC (rev 15732)
+++ trunk/freenet/src/freenet/pluginmanager/PluginManager.java	2007-11-10 02:17:49 UTC (rev 15733)
@@ -54,7 +54,6 @@
 	private final Set/* <PluginProgress> */startingPlugins = new HashSet/* <PluginProgress> */();
 
 	private final Vector/* <PluginInfoWrapper> */pluginWrappers;
-	private PluginRespirator pluginRespirator = null;
 	final Node node;
 	private final NodeClientCore core;
 	SubConfig pmconfig;
@@ -66,7 +65,6 @@
 		this.node = node;
 		this.core = node.clientCore;
 		logMINOR = Logger.shouldLog(Logger.MINOR, this);
-		pluginRespirator = new PluginRespirator(node, this);
 
 		pmconfig = new SubConfig("pluginmanager", node.config);
 		// Start plugins in the config
@@ -149,7 +147,7 @@
 				try {
 					plug = loadPlugin(filename, refresh);
 					pluginProgress.setProgress(PluginProgress.STARTING);
-					PluginInfoWrapper pi = PluginHandler.startPlugin(PluginManager.this, filename, plug, pluginRespirator, refresh);
+					PluginInfoWrapper pi = PluginHandler.startPlugin(PluginManager.this, filename, plug, new PluginRespirator(node, PluginManager.this), refresh);
 					synchronized (pluginWrappers) {
 						pluginWrappers.add(pi);
 					}




More information about the cvs mailing list