Author: j16sdiz
Date: 2008-12-29 01:20:24 +0000 (Mon, 29 Dec 2008)
New Revision: 24817
Modified:
trunk/plugins/XMLSpider/XMLSpider.java
Log:
termination
Modified: trunk/plugins/XMLSpider/XMLSpider.java
===================================================================
--- trunk/plugins/XMLSpider/XMLSpider.java 2008-12-29 01:20:10 UTC (rev
24816)
+++ trunk/plugins/XMLSpider/XMLSpider.java 2008-12-29 01:20:24 UTC (rev
24817)
@@ -669,7 +669,8 @@
}
public void foundURI(FreenetURI uri, boolean inline){
- if (stopped) return;
+ if (stopped)
+ throw new RuntimeException("plugin stopping");
Logger.debug(this, "foundURI " + uri + " on " + page);
queueURI(uri, "Added from " + page.uri, false);
}
@@ -677,7 +678,8 @@
protected Integer lastPosition = null;
public void onText(String s, String type, URI baseURI){
- if (stopped) return;
+ if (stopped)
+ throw new RuntimeException("plugin stopping");
Logger.debug(this, "onText on " + page.id + " (" +
baseURI + ")");
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs