Skip to content

Commit

Permalink
Fix error with percentage being called even on untracked jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
tobytwigger committed Aug 17, 2022
1 parent 0994042 commit 7c9e2b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ public function dispatchNow($command, $handler = null)
throw $e;
}

$command->percentage(100);
if($this->isTracked($command)) {
$command->percentage(100);
}

return $result;
}
Expand Down

0 comments on commit 7c9e2b5

Please sign in to comment.