Reuse get_interested_parties

This commit is contained in:
Erik Johnston 2017-04-12 10:11:43 +01:00
parent 9c712a366f
commit c7ddb5ef7a
2 changed files with 8 additions and 19 deletions

View file

@ -269,13 +269,13 @@ class TransactionQueue(object):
self._processing_pending_presence = True
try:
while True:
states = self.pending_presence
states_map = self.pending_presence
self.pending_presence = {}
if not states:
if not states_map:
break
yield self._process_presence_inner(states)
yield self._process_presence_inner(states_map.values())
finally:
self._processing_pending_presence = False