Author: toad
Date: 2007-09-15 19:26:48 +0000 (Sat, 15 Sep 2007)
New Revision: 15196

Modified:
   trunk/freenet/src/freenet/node/Node.java
Log:
Synchronization fix

Modified: trunk/freenet/src/freenet/node/Node.java
===================================================================
--- trunk/freenet/src/freenet/node/Node.java    2007-09-15 19:17:06 UTC (rev 
15195)
+++ trunk/freenet/src/freenet/node/Node.java    2007-09-15 19:26:48 UTC (rev 
15196)
@@ -2277,9 +2277,11 @@
         * May be called twice - once in exit (above) and then again
         * from the wrapper triggered by calling System.exit(). Beware!
         */
-       public synchronized void park() {
-               if(isStopping) return;
-               isStopping = true;
+       public void park() {
+               synchronized(this) {
+                       if(isStopping) return;
+                       isStopping = true;
+               }

                config.store();



Reply via email to