Loop new implementation test@7
This commit is contained in:
parent
c7e046374a
commit
17f2f5bf18
|
@ -127,11 +127,14 @@
|
||||||
|
|
||||||
/* [2] Manage timeout
|
/* [2] Manage timeout
|
||||||
=========================================================*/
|
=========================================================*/
|
||||||
/* (1) If no action for this @cur_timeout -> reset to 0 */
|
/* (1) Store @cur_timeout not to repeat it */
|
||||||
|
$last_to = $cur_timeout;
|
||||||
|
|
||||||
|
/* (2) If no action for this @cur_timeout -> reset to 0 */
|
||||||
if( !isset($actions[$cur_timeout]) || !is_array($actions[$cur_timeout]) )
|
if( !isset($actions[$cur_timeout]) || !is_array($actions[$cur_timeout]) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
/* (2) fetch actions for the current @cur_timeout */
|
/* (3) fetch actions for the current @cur_timeout */
|
||||||
$actionlist = $actions[floor($cur_timeout)];
|
$actionlist = $actions[floor($cur_timeout)];
|
||||||
|
|
||||||
|
|
||||||
|
@ -234,10 +237,7 @@
|
||||||
$toPerform
|
$toPerform
|
||||||
]).PHP_EOL );
|
]).PHP_EOL );
|
||||||
|
|
||||||
/* (2) Store @cur_timeout not to repeat it */
|
/* (2) Return status */
|
||||||
$last_to = $cur_timeout;
|
|
||||||
|
|
||||||
/* (3) Return status */
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue