Skip to content

Commit

Permalink
Update Timer.php
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored Feb 8, 2017
1 parent d131cc3 commit c92ae3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/Timer.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static function signalHandle()
* @param callback $func
* @param mixed $args
* @param bool $persistent
* @return bool
* @return int/false
*/
public static function add($time_interval, $func, $args = array(), $persistent = true)
{
Expand Down Expand Up @@ -107,7 +107,7 @@ public static function add($time_interval, $func, $args = array(), $persistent =
self::$_tasks[$run_time] = array();
}
self::$_tasks[$run_time][] = array($func, (array)$args, $persistent, $time_interval);
return true;
return 1;
}


Expand Down

0 comments on commit c92ae3c

Please sign in to comment.