Skip to content

Commit

Permalink
New comments and condition
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Jul 11, 2019
1 parent 47619e7 commit e5dcf2b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/appier_console/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,10 @@ def run(self):
# while there's progress in the background operation
while True:
# in case the running flag is not longer set breaks
# the current loop (nothing remaining to be done)
if not self.running: break
# the current loop (nothing remaining to be done), notice
# that at least one loop cycle is guaranteed to be loaded
# this avoids the "no output" on small and fast operations
if not is_first and not self.running: break

# in case the maximum number of prints has been reached
# then the waiting (for condition) must be performed
Expand Down

0 comments on commit e5dcf2b

Please sign in to comment.