From c13b10a6a68c6b7f53cd3289baace9ac43204db9 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 28 Apr 2011 16:39:36 +0000 Subject: QPID-3232: Call _grant() & wakeup() after returned message has been counted git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1097539 13f79535-47bb-0310-9956-ffa450edef68 --- python/qpid/messaging/endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/qpid/messaging/endpoints.py b/python/qpid/messaging/endpoints.py index cfc89d4e2b..338ac70ecf 100644 --- a/python/qpid/messaging/endpoints.py +++ b/python/qpid/messaging/endpoints.py @@ -1007,9 +1007,9 @@ class Receiver(Endpoint, object): self.draining = True self._wakeup() self._ecwait(lambda: not self.draining) + msg = self.session._get(self, timeout=0) self._grant() self._wakeup() - msg = self.session._get(self, timeout=0) if msg is None: raise Empty() elif self._capacity not in (0, UNLIMITED.value): -- cgit v1.2.1