[freenet-cvs] r15021 - trunk/plugins/XMLSpider

toad at freenetproject.org toad at freenetproject.org
Fri Sep 7 22:34:14 UTC 2007


Author: toad
Date: 2007-09-07 22:34:14 +0000 (Fri, 07 Sep 2007)
New Revision: 15021

Modified:
   trunk/plugins/XMLSpider/XMLSpider.java
Log:
Count filtering as still running the request

Modified: trunk/plugins/XMLSpider/XMLSpider.java
===================================================================
--- trunk/plugins/XMLSpider/XMLSpider.java	2007-09-07 21:51:21 UTC (rev 15020)
+++ trunk/plugins/XMLSpider/XMLSpider.java	2007-09-07 22:34:14 UTC (rev 15021)
@@ -249,10 +249,8 @@
 	public void onSuccess(FetchResult result, ClientGetter state) {
 		FreenetURI uri = state.getURI();
 
-		synchronized (this) {
-			runningFetchesByURI.remove(uri);
-		}
-		startSomeRequests();
+		try {
+		
 		ClientMetadata cm = result.getMetadata();
 		Bucket data = result.asBucket();
 		String mimeType = cm.getMIMEType();
@@ -280,6 +278,12 @@
 		} finally {
 			data.free();
 		}
+		} finally {
+			synchronized (this) {
+				runningFetchesByURI.remove(uri);
+			}
+			startSomeRequests();
+		}
 	}
 
 	public void onFailure(FetchException e, ClientGetter state) {




More information about the cvs mailing list