core: fix Receiver.__iter__ regression on EOF

pull/295/head
David Wilson 7 years ago
parent 0eb77b5f7c
commit db529e8228

@ -575,7 +575,7 @@ class Receiver(object):
def __iter__(self):
while True:
msg = self.get()
msg = self.get(throw_dead=False)
if msg.is_dead:
return
yield msg

Loading…
Cancel
Save