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): def __iter__(self):
while True: while True:
msg = self.get() msg = self.get(throw_dead=False)
if msg.is_dead: if msg.is_dead:
return return
yield msg yield msg

Loading…
Cancel
Save