Loop new implementation test@7

This commit is contained in:
xdrm-brackets 2017-09-28 11:04:51 +02:00
parent c7e046374a
commit 17f2f5bf18
1 changed files with 6 additions and 6 deletions

View File

@ -127,11 +127,14 @@
/* [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]) )
return false;
/* (2) fetch actions for the current @cur_timeout */
/* (3) fetch actions for the current @cur_timeout */
$actionlist = $actions[floor($cur_timeout)];
@ -234,10 +237,7 @@
$toPerform
]).PHP_EOL );
/* (2) Store @cur_timeout not to repeat it */
$last_to = $cur_timeout;
/* (3) Return status */
/* (2) Return status */
return true;
}