r26775 - trunk/freenet/src/freenet/clients/http

[email protected] Tue, 14 Apr 2009 05:36:53 +0000
Newsgroups gmane.network.freenet.cvs
Message-ID <[email protected]>
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"),
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.