Change Stop button behavior

This commit is contained in:
oobabooga 2023-03-27 13:23:59 -03:00
parent addb9777f9
commit af65c12900
4 changed files with 10 additions and 9 deletions

View file

@ -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)