Author: j16sdiz
Date: 2009-04-14 05:36:52 +0000 (Tue, 14 Apr 2009)
New Revision: 26775
Modified:
trunk/freenet/src/freenet/clients/http/QueueToadlet.java
Log:
Error handling for exception
Modified: trunk/freenet/src/freenet/clients/http/QueueToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/QueueToadlet.java 2009-04-14
05:36:27 UTC (rev 26774)
+++ trunk/freenet/src/freenet/clients/http/QueueToadlet.java 2009-04-14
05:36:52 UTC (rev 26775)
@@ -175,9 +175,13 @@
// FIXME panic button should just dump the
entire database ???
// FIXME what about non-global requests ???
+ boolean success = false;
+ try {
+ success =
fcp.removeAllGlobalRequestsBlocking();
+ } catch (Exception e) {
+ Logger.error(this, "Exception on remove
all", e);
+ }
- boolean success =
fcp.removeAllGlobalRequestsBlocking();
-
if(!success)
this.sendErrorPage(ctx, 200,
L10n.getString("QueueToadlet.failedToRemoveRequest"),
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs