Author: nextgens
Date: 2006-11-10 21:04:50 +0000 (Fri, 10 Nov 2006)
New Revision: 10871

Modified:
   trunk/contrib/fec/common/src/com/onionnetworks/util/AsyncPersistentProps.java
Log:
contrib: onion-common: daemonize the thread in charge of reading the property 
file in order to workaround the NTPL bug

Modified: 
trunk/contrib/fec/common/src/com/onionnetworks/util/AsyncPersistentProps.java
===================================================================
--- 
trunk/contrib/fec/common/src/com/onionnetworks/util/AsyncPersistentProps.java   
    2006-11-10 20:58:24 UTC (rev 10870)
+++ 
trunk/contrib/fec/common/src/com/onionnetworks/util/AsyncPersistentProps.java   
    2006-11-10 21:04:50 UTC (rev 10871)
@@ -19,12 +19,14 @@
      * does not exist then the file and an empty Properties will be created
      */
     public AsyncPersistentProps(File f) throws IOException {
-        this.f = f;
-        p = new Properties();
-        if (f.exists()) {
-            p.load(new FileInputStream(f));
-        }
-        new Thread(this,"Props Writer :"+f.getName()).start();
+           this.f = f;
+           p = new Properties();
+           if (f.exists()) {
+                   p.load(new FileInputStream(f));
+           }
+           final Thread thread = new Thread(this,"Props Writer :"+f.getName());
+           thread.setDaemon(true);
+           thread.start();
     }

     public Properties getProperties() {


Reply via email to