From 8f9ea36aac0c6359ec2777e2742dd7d0fa132b7d Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 23 Jun 2014 12:46:58 +0000 Subject: QPID-5828: Ensure that we don't try to check status of null completion handle git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1604785 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/client/amqp0_10/SenderImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qpid/cpp/src') diff --git a/qpid/cpp/src/qpid/client/amqp0_10/SenderImpl.cpp b/qpid/cpp/src/qpid/client/amqp0_10/SenderImpl.cpp index 7001acaf99..602c819ca3 100644 --- a/qpid/cpp/src/qpid/client/amqp0_10/SenderImpl.cpp +++ b/qpid/cpp/src/qpid/client/amqp0_10/SenderImpl.cpp @@ -158,7 +158,7 @@ uint32_t SenderImpl::checkPendingSends(bool flush, const sys::Mutex::ScopedLock& } else { flushed = false; } - while (!outgoing.empty() && outgoing.front().status.isComplete()) { + while (!outgoing.empty() && outgoing.front().status.isValid() && outgoing.front().status.isComplete()) { outgoing.pop_front(); } return outgoing.size(); -- cgit v1.2.1