Allow multiple shutdown calls
This commit is contained in:
parent
840ac0109b
commit
0c9337bd72
|
@ -45,6 +45,7 @@ class ThreadedSegment(Thread):
|
|||
self.sleep(monotonic() - start_time)
|
||||
|
||||
def shutdown(self):
|
||||
if self.keep_going:
|
||||
self.keep_going = False
|
||||
self.update_lock.acquire()
|
||||
|
||||
|
|
Loading…
Reference in New Issue