activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1442813 - /activemq/activemq-cpp/branches/activemq-cpp-3.5.x/activemq-cpp/src/main/activemq/transport/inactivity/InactivityMonitor.cpp
Date Wed, 06 Feb 2013 00:22:44 GMT
Author: tabish
Date: Wed Feb  6 00:22:44 2013
New Revision: 1442813

URL: http://svn.apache.org/viewvc?rev=1442813&view=rev
Log:
https://issues.apache.org/jira/browse/AMQCPP-454

Check to see if the internal data has been created yet.  

Modified:
    activemq/activemq-cpp/branches/activemq-cpp-3.5.x/activemq-cpp/src/main/activemq/transport/inactivity/InactivityMonitor.cpp

Modified: activemq/activemq-cpp/branches/activemq-cpp-3.5.x/activemq-cpp/src/main/activemq/transport/inactivity/InactivityMonitor.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/branches/activemq-cpp-3.5.x/activemq-cpp/src/main/activemq/transport/inactivity/InactivityMonitor.cpp?rev=1442813&r1=1442812&r2=1442813&view=diff
==============================================================================
--- activemq/activemq-cpp/branches/activemq-cpp-3.5.x/activemq-cpp/src/main/activemq/transport/inactivity/InactivityMonitor.cpp
(original)
+++ activemq/activemq-cpp/branches/activemq-cpp-3.5.x/activemq-cpp/src/main/activemq/transport/inactivity/InactivityMonitor.cpp
Wed Feb  6 00:22:44 2013
@@ -466,6 +466,10 @@ void InactivityMonitor::startMonitorThre
 ////////////////////////////////////////////////////////////////////////////////
 void InactivityMonitor::stopMonitorThreads() {
 
+    if (this->members == NULL) {
+        return;
+    }
+
     synchronized(&this->members->monitor) {
 
         if (this->members->monitorStarted.compareAndSet(true, false)) {



Mime
View raw message