Author: xor
Date: 2008-09-23 11:36:51 +0000 (Tue, 23 Sep 2008)
New Revision: 22763
Modified:
trunk/plugins/WoT/Config.java
Log:
Synchronization.
Modified: trunk/plugins/WoT/Config.java
===================================================================
--- trunk/plugins/WoT/Config.java 2008-09-23 11:36:37 UTC (rev 22762)
+++ trunk/plugins/WoT/Config.java 2008-09-23 11:36:51 UTC (rev 22763)
@@ -6,11 +6,8 @@
package plugins.WoT;
import java.util.HashMap;
-import java.util.Iterator;
import java.util.Set;
-import com.db4o.ObjectContainer;
-
/**
* Contains a HashMap<String, String> which maps configuration variable names
* to their values and stores them in the database.
@@ -86,7 +83,7 @@
* Add the default configuration values to the database.
* @param overwrite If true, overwrite already set values with the
default value.
*/
- public void initDefault(boolean overwrite) {
+ public synchronized void initDefault(boolean overwrite) {
if (!contains("delayBetweenInserts") || overwrite)
set("delayBetweenInserts", "30");
}