From e1edfcbfe27947a5a09df6817944d675056e60d3 Mon Sep 17 00:00:00 2001 From: Julien Date: Tue, 5 Apr 2016 11:27:21 +0200 Subject: [PATCH] fix quit action the 'quit' action was not considered if the 'retry' one was set. This could lead to infinite loops if you define --max-retries=-1. --- patator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patator.py b/patator.py index 85535c6..d6ec1cc 100755 --- a/patator.py +++ b/patator.py @@ -1892,6 +1892,9 @@ Please read the README inside for more examples and usage information. except Empty: break + if 'quit' in actions: + self.ns.quit_now = True + if actions == 'skip': p.skip_count += 1 continue @@ -1928,9 +1931,6 @@ Please read the README inside for more examples and usage information. p.done_count += 1 - if 'quit' in actions: - self.ns.quit_now = True - def monitor_interaction(self):