allow early stop calls to CLI spinner
This commit is contained in:
@@ -81,6 +81,9 @@ class LoadingAnimation:
|
||||
self,
|
||||
interrupt: bool = False,
|
||||
) -> None:
|
||||
if self.done:
|
||||
return
|
||||
|
||||
self.done = True
|
||||
if self._do_animation:
|
||||
self._thread.join()
|
||||
|
||||
Reference in New Issue
Block a user