From 257b52e8627b83fdb1d73b2d305ccfa70ead857a Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 26 Feb 2009 22:33:40 +0000 Subject: Fix to avoid spinning if an exception is thrown in cluster::PollableQueue. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@748339 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/cluster/PollableQueue.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpp/src') diff --git a/cpp/src/qpid/cluster/PollableQueue.h b/cpp/src/qpid/cluster/PollableQueue.h index e0422e2449..a44c39ad85 100644 --- a/cpp/src/qpid/cluster/PollableQueue.h +++ b/cpp/src/qpid/cluster/PollableQueue.h @@ -52,6 +52,8 @@ template class PollableQueue : public sys::PollableQueue { } catch (const std::exception& e) { QPID_LOG(error, message << ": " << e.what()); + values.clear(); + this->stop(); error(); } } -- cgit v1.2.1