From 0fb4d201175e1c79fada4fb76807ba88ef925742 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@748339 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/cluster/PollableQueue.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qpid/cpp/src') diff --git a/qpid/cpp/src/qpid/cluster/PollableQueue.h b/qpid/cpp/src/qpid/cluster/PollableQueue.h index e0422e2449..a44c39ad85 100644 --- a/qpid/cpp/src/qpid/cluster/PollableQueue.h +++ b/qpid/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