Change Stop button behavior
This commit is contained in:
parent
addb9777f9
commit
af65c12900
4 changed files with 10 additions and 9 deletions
|
@ -54,7 +54,7 @@ class Iteratorize:
|
|||
self.stop_now = False
|
||||
|
||||
def _callback(val):
|
||||
if self.stop_now:
|
||||
if self.stop_now or shared.stop_everything:
|
||||
raise ValueError
|
||||
self.q.put(val)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue