summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/monkeyfarmer.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/monkeyfarmer.py b/test/monkeyfarmer.py
index a26e28dd4..dcc32175f 100644
--- a/test/monkeyfarmer.py
+++ b/test/monkeyfarmer.py
@@ -148,10 +148,10 @@ class MonkeyFarmer(asyncore.dispatcher):
asyncore.loop(timeout=next_event - now, count=1)
else:
asyncore.loop(count=1)
- if len(self.lines) > 0:
+ while len(self.lines) > 0:
self.monkey_says(self.lines.pop(0))
- if once:
- break
+ if once or self.deadmonkey:
+ return
class Browser: