activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r758832 - /activemq/activemq-cpp/trunk/src/main/activemq/transport/failover/CloseTransportsTask.cpp
Date Thu, 26 Mar 2009 20:17:05 GMT
Author: tabish
Date: Thu Mar 26 20:17:05 2009
New Revision: 758832

URL: http://svn.apache.org/viewvc?rev=758832&view=rev
Log:
Fix a warning on Windows

Modified:
    activemq/activemq-cpp/trunk/src/main/activemq/transport/failover/CloseTransportsTask.cpp

Modified: activemq/activemq-cpp/trunk/src/main/activemq/transport/failover/CloseTransportsTask.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/transport/failover/CloseTransportsTask.cpp?rev=758832&r1=758831&r2=758832&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/transport/failover/CloseTransportsTask.cpp
(original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/transport/failover/CloseTransportsTask.cpp
Thu Mar 26 20:17:05 2009
@@ -38,9 +38,14 @@
 
 ////////////////////////////////////////////////////////////////////////////////
 bool CloseTransportsTask::isPending() const {
-    synchronized( &transports ) {
-        return !transports.empty();
+    
+	bool result = false;
+	
+	synchronized( &transports ) {
+        result = !transports.empty();
     }
+
+	return result;
 }
 
 ////////////////////////////////////////////////////////////////////////////////



Mime
View raw message