cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r956895 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/event/DefaultEventManager.java
Date Tue, 22 Jun 2010 13:43:22 GMT
Author: aadamchik
Date: Tue Jun 22 13:43:22 2010
New Revision: 956895

URL: http://svn.apache.org/viewvc?rev=956895&view=rev
Log:
shutdown race condition... making sure we are in stopped mode before pinging the threads

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/event/DefaultEventManager.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/event/DefaultEventManager.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/event/DefaultEventManager.java?rev=956895&r1=956894&r2=956895&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/event/DefaultEventManager.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/event/DefaultEventManager.java
Tue Jun 22 13:43:22 2010
@@ -112,12 +112,13 @@ public class DefaultEventManager impleme
 
         if (!stopped) {
 
+            this.stopped = true;
+
             for (DispatchThread thread : dispatchThreads) {
                 thread.interrupt();
             }
 
             dispatchThreads.clear();
-            this.stopped = true;
         }
     }
 



Mime
View raw message