Author: j16sdiz
Date: 2008-12-16 04:58:41 +0000 (Tue, 16 Dec 2008)
New Revision: 24362
Modified:
trunk/plugins/XMLSpider/XMLSpider.java
Log:
indent
Modified: trunk/plugins/XMLSpider/XMLSpider.java
===================================================================
--- trunk/plugins/XMLSpider/XMLSpider.java 2008-12-16 04:58:32 UTC (rev
24361)
+++ trunk/plugins/XMLSpider/XMLSpider.java 2008-12-16 04:58:41 UTC (rev
24362)
@@ -426,32 +426,32 @@
Logger.minor(this, "Failed: " + page + " : " + state, fe);
try {
- synchronized (this) {
- if (stopped)
- return;
-
- if (fe.newURI != null) {
- // redirect, mark as succeeded
- queueURI(fe.newURI, "redirect from " +
state.getURI());
+ synchronized (this) {
+ if (stopped)
+ return;
- page.status = Status.SUCCEEDED;
- page.lastChange = System.currentTimeMillis();
- db.store(page);
- } else if (fe.isFatal()) {
- // too many tries or fatal, mark as failed
- page.status = Status.FAILED;
- page.lastChange = System.currentTimeMillis();
- db.store(page);
- } else {
- // requeue at back
- page.status = Status.QUEUED;
- page.lastChange = System.currentTimeMillis();
+ if (fe.newURI != null) {
+ // redirect, mark as succeeded
+ queueURI(fe.newURI, "redirect from " +
state.getURI());
- db.store(page);
+ page.status = Status.SUCCEEDED;
+ page.lastChange =
System.currentTimeMillis();
+ db.store(page);
+ } else if (fe.isFatal()) {
+ // too many tries or fatal, mark as
failed
+ page.status = Status.FAILED;
+ page.lastChange =
System.currentTimeMillis();
+ db.store(page);
+ } else {
+ // requeue at back
+ page.status = Status.QUEUED;
+ page.lastChange =
System.currentTimeMillis();
+
+ db.store(page);
+ }
}
- }
-
- startSomeRequests();
+
+ startSomeRequests();
} finally {
runningFetch.remove(page);
}
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs