Author: j16sdiz
Date: 2008-06-20 13:35:02 +0000 (Fri, 20 Jun 2008)
New Revision: 20523

Modified:
   
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java
Log:
write config file earlier


Modified: 
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java
===================================================================
--- 
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java  
    2008-06-20 13:34:40 UTC (rev 20522)
+++ 
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java  
    2008-06-20 13:35:02 UTC (rev 20523)
@@ -857,7 +857,15 @@

                                        if (_rebuildBloom)
                                                rebuildBloom();
+                               }

+                               try {
+                                       writeConfigFile();
+                               } catch (IOException e) {
+                                       Logger.error(this, "Can't write config 
file", e);
+                               }
+
+                               synchronized (cleanerLock) {
                                        cleanerLock.notifyAll();
                                        try {
                                                
cleanerLock.wait(CLEANER_PERIOD);
@@ -865,12 +873,6 @@
                                                Logger.debug(this, 
"interrupted", e);
                                        }
                                }
-
-                               try {
-                                       writeConfigFile();
-                               } catch (IOException e) {
-                                       Logger.error(this, "Can't write config 
file", e);
-                               }
                        }
                }



Reply via email to