|
@@ -218,7 +218,9 @@ class Timer
|
|
|
public static function delAll()
|
|
public static function delAll()
|
|
|
{
|
|
{
|
|
|
self::$_tasks = self::$_status = [];
|
|
self::$_tasks = self::$_status = [];
|
|
|
- \pcntl_alarm(0);
|
|
|
|
|
|
|
+ if (\function_exists('pcntl_alarm')) {
|
|
|
|
|
+ \pcntl_alarm(0);
|
|
|
|
|
+ }
|
|
|
if (self::$_event) {
|
|
if (self::$_event) {
|
|
|
self::$_event->deleteAllTimer();
|
|
self::$_event->deleteAllTimer();
|
|
|
}
|
|
}
|