r26732 - trunk/freenet/src/freenet/pluginmanager

[email protected]
Newsgroups gmane.network.freenet.cvs
Message-ID <[email protected]>
Author: j16sdiz
Date: 2009-04-11 03:54:29 +0000 (Sat, 11 Apr 2009)
New Revision: 26732

Modified:
   trunk/freenet/src/freenet/pluginmanager/PluginManager.java
Log:
Synchronized the plugin loading code

Modified: trunk/freenet/src/freenet/pluginmanager/PluginManager.java
===================================================================
--- trunk/freenet/src/freenet/pluginmanager/PluginManager.java	2009-04-10 23:16:41 UTC (rev 26731)
+++ trunk/freenet/src/freenet/pluginmanager/PluginManager.java	2009-04-11 03:54:29 UTC (rev 26732)
@@ -822,6 +822,8 @@
 				}
 		}
 		
+		// synchronized(this), not (pluginwrappers)
+		synchronized (this) {
 		if(this.isPluginLoaded(filename)) {
 			Logger.error(this, "Plugin already loaded: "+filename);
 			return null;
@@ -958,6 +960,7 @@
 			pluginFile.delete();
 			throw new PluginNotFoundException("unexcpected error while plugin loading " + t, t);
 		}
+		}
 	}
 
 	private String getFileSHA1(File file) throws PluginNotFoundException {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.