Skip to content

Commit aaa1904

Browse files
committed
reset self._stopped when start() is called
1 parent d666956 commit aaa1904

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

halo/halo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,8 +543,8 @@ def start(self, text=None):
543543
# to avoid possible overriding in subclasses.
544544
if all(inst._stopped for inst in Halo._instances):
545545
Halo._instances[:] = []
546+
# Allow for calling start() multiple times
546547
if self not in Halo._instances:
547-
# Allow for calling start() multiple times
548548
Halo._instances.append(self)
549549
self._hide_cursor()
550550

@@ -554,6 +554,7 @@ def start(self, text=None):
554554
self._render_frame()
555555
self._spinner_id = self._spinner_thread.name
556556
self._spinner_thread.start()
557+
self._stopped = False
557558

558559
return self
559560

0 commit comments

Comments
 (0)