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 | 0fb4d201175e1c79fada4fb76807ba88ef925742 (patch) | |
| tree | fc963700d42a71bffc6bbcced4b74aba5b12548e | |
| parent | adbb618fa2ae734cc9f87e57ae15df14c77edf77 (diff) | |
| download | qpid-python-0fb4d201175e1c79fada4fb76807ba88ef925742.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@748339 13f79535-47bb-0310-9956-ffa450edef68
| -rw-r--r-- | qpid/cpp/src/qpid/cluster/PollableQueue.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 T> class PollableQueue : public sys::PollableQueue<T> { } catch (const std::exception& e) { QPID_LOG(error, message << ": " << e.what()); + values.clear(); + this->stop(); error(); } } |
