diff options
author | Gordon Sim <gsim@apache.org> | 2011-04-28 16:39:36 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2011-04-28 16:39:36 +0000 |
commit | c13b10a6a68c6b7f53cd3289baace9ac43204db9 (patch) | |
tree | 35d7f845901eb06bbf9415e16e1cd650264b0c48 /python | |
parent | 4a5868c6156d53925bf0e7f4a1d05049c050f4de (diff) | |
download | qpid-python-c13b10a6a68c6b7f53cd3289baace9ac43204db9.tar.gz |
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
Diffstat (limited to 'python')
-rw-r--r-- | python/qpid/messaging/endpoints.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |