diff options
author | Alan Conway <aconway@apache.org> | 2009-02-26 22:33:40 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2009-02-26 22:33:40 +0000 |
commit | 257b52e8627b83fdb1d73b2d305ccfa70ead857a (patch) | |
tree | d18d5aad80f8bbc704bb10460a9f247137add842 /cpp/src | |
parent | 90e70003bee9333ea827b77900c1da3fc303da00 (diff) | |
download | qpid-python-257b52e8627b83fdb1d73b2d305ccfa70ead857a.tar.gz |
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
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/qpid/cluster/PollableQueue.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 T> class PollableQueue : public sys::PollableQueue<T> { } catch (const std::exception& e) { QPID_LOG(error, message << ": " << e.what()); + values.clear(); + this->stop(); error(); } } |