Skip to content

Commit

Permalink
fixes lw executing more parallel workers than specified
Browse files Browse the repository at this point in the history
  • Loading branch information
Corey Christous committed Feb 18, 2016
1 parent 25a354f commit 4711e03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion littleworkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def run(self, commands=None, callback=None):
while keep_running:
self.inspect_pool()

if len(self.pool) <= min(self.command_count(), self.workers):
if (len(self.pool) < self.workers) and (self.command_count() > 0):
command = self.next_command()

if not command:
Expand Down

0 comments on commit 4711e03

Please sign in to comment.