Skip to content
Snippets Groups Projects
Commit 5a443d46 authored by jaapjansma's avatar jaapjansma
Browse files

when no delayed actions are present the queue will trigger an exception"

parent 3d947870
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,7 @@ class CRM_Civirules_Engine {
));
$stopTime = time() + $maxRunTime; //stop executing next item after 30 seconds
while((time() < $stopTime)) {
while((time() < $stopTime) && $queue->numberOfItems() > 0) {
$result = $runner->runNext(false);
$returnValues[] = $result;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment