Author: tabish
Date: Wed Mar 18 13:43:30 2009
New Revision: 755594

URL: http://svn.apache.org/viewvc?rev=755594&view=rev
Log:
http://issues.apache.org/activemq/browse/AMQCPP-100

Add fix to handle problems when closing a failed transport.

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

Modified: 
activemq/activemq-cpp/trunk/src/main/activemq/transport/failover/FailoverTransport.cpp
URL: 
http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/transport/failover/FailoverTransport.cpp?rev=755594&r1=755593&r2=755594&view=diff
==============================================================================
--- 
activemq/activemq-cpp/trunk/src/main/activemq/transport/failover/FailoverTransport.cpp
 (original)
+++ 
activemq/activemq-cpp/trunk/src/main/activemq/transport/failover/FailoverTransport.cpp
 Wed Mar 18 13:43:30 2009
@@ -457,7 +457,11 @@
         if( this->disposedListener != NULL ) {
             transport->setTransportListener( disposedListener.get() );
         }
-        transport->close();
+
+        try{
+            transport->close();
+        }
+        AMQ_CATCHALL_NOTHROW()
 
         synchronized( &reconnectMutex ) {
             bool reconnectOk = started;


Reply via email to