Skip to content

Commit

Permalink
Fix for CLI loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Simbiat committed Apr 26, 2021
1 parent 52dbea5 commit 40a223b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public function process(int $items = 1): bool
sleep(self::$sseRetry/20);
}
}
} while (self::$sseLoop === true && connection_status() === 0);
} while (self::$CLI === false && self::$sseLoop === true && connection_status() === 0);
#Notify of end of stream
if (self::$CLI === false) {
$this->streamEcho('Cron processing finished', 'CronEnd');
Expand Down

0 comments on commit 40a223b

Please sign in to comment.