Author: aconway
Date: Thu Feb 26 22:33:40 2009
New Revision: 748339

URL: http://svn.apache.org/viewvc?rev=748339&view=rev
Log:
Fix to avoid spinning if an exception is thrown in cluster::PollableQueue.

Modified:
    qpid/trunk/qpid/cpp/src/qpid/cluster/PollableQueue.h

Modified: qpid/trunk/qpid/cpp/src/qpid/cluster/PollableQueue.h
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/cluster/PollableQueue.h?rev=748339&r1=748338&r2=748339&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/cluster/PollableQueue.h (original)
+++ qpid/trunk/qpid/cpp/src/qpid/cluster/PollableQueue.h Thu Feb 26 22:33:40 
2009
@@ -52,6 +52,8 @@
         }
         catch (const std::exception& e) {
             QPID_LOG(error, message << ": " << e.what());
+            values.clear();
+            this->stop();
             error();
         }
     }



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscr...@qpid.apache.org

Reply via email to