allow early stop calls to CLI spinner

This commit is contained in:
2025-11-11 10:07:02 +01:00
parent d14448293b
commit 62e79c03b6
2 changed files with 5 additions and 2 deletions

View File

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