[freenet-cvs] r18371 - trunk/freenet/src/freenet/node/fcp

toad at freenetproject.org toad at freenetproject.org
Wed Mar 5 13:13:27 UTC 2008


Author: toad
Date: 2008-03-05 13:13:27 +0000 (Wed, 05 Mar 2008)
New Revision: 18371

Modified:
   trunk/freenet/src/freenet/node/fcp/FCPServer.java
Log:
Hopefully fix the lose-the-queue bug.

Modified: trunk/freenet/src/freenet/node/fcp/FCPServer.java
===================================================================
--- trunk/freenet/src/freenet/node/fcp/FCPServer.java	2008-03-05 13:04:56 UTC (rev 18370)
+++ trunk/freenet/src/freenet/node/fcp/FCPServer.java	2008-03-05 13:13:27 UTC (rev 18371)
@@ -475,8 +475,10 @@
 				}
 			} catch (IOException e) {
 				throw new InvalidConfigValueException(l10n("downloadsFileDoesNotExistCannotCreate")+ " : "+e.getLocalizedMessage());
+			} finally {
+				// Must be deleted, otherwise we will read from it and ignore the temp file => lose the queue.
+				f.delete();
 			}
-			f.delete();
 		}
 	}
 




More information about the cvs mailing list