Author: saces
Date: 2009-04-06 14:39:09 +0000 (Mon, 06 Apr 2009)
New Revision: 26561

Modified:
   trunk/freenet/src/freenet/pluginmanager/PluginTalker.java
Log:
re-throw thread/vm fatals, the node should be notified about them.


Modified: trunk/freenet/src/freenet/pluginmanager/PluginTalker.java
===================================================================
--- trunk/freenet/src/freenet/pluginmanager/PluginTalker.java   2009-04-06 
11:39:50 UTC (rev 26560)
+++ trunk/freenet/src/freenet/pluginmanager/PluginTalker.java   2009-04-06 
14:39:09 UTC (rev 26561)
@@ -61,8 +61,12 @@
 
                                try {
                                        plugin.handle(replysender, plugparams, 
data2, access);
+                               } catch (ThreadDeath td) {
+                                       throw td;  // Fatal, thread is stop()'ed
+                               } catch (VirtualMachineError vme) {
+                                       throw vme; // OOM is included here
                                } catch (Throwable t) {
-                                       Logger.error(this, "Cought error while 
execute fcp plugin handler: " + t.getMessage(), t);
+                                       Logger.error(this, "Cought error while 
execute fcp plugin handler for '"+pluginName+"', report it to the plugin 
author: " + t.getMessage(), t);
                                }
 
                        }

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to