Skip to content

Commit

Permalink
FIX: Check if progress bar channel is open
Browse files Browse the repository at this point in the history
  • Loading branch information
hschimpf committed Apr 12, 2023
1 parent 2288124 commit 932951e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Internals/Worker/CommunicatesWithProgressBarWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ final public function clear(): void {
}

private function newProgressBarAction(string $action, ...$args): void {
// check if progressbar is active
if ($this->progressbar_channel === null) return;

$message = new Commands\ProgressBar\ProgressBarActionMessage(
action: $action,
args: $args,
Expand Down

0 comments on commit 932951e

Please sign in to comment.