Update Util.php
This commit is contained in:
parent
92b1551284
commit
af0167a44b
@ -519,7 +519,7 @@ class Util
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* reload webman (不支持windows)
|
* reload webman
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public static function reloadWebman()
|
public static function reloadWebman()
|
||||||
@ -529,8 +529,12 @@ class Util
|
|||||||
posix_kill(posix_getppid(), SIGUSR1);
|
posix_kill(posix_getppid(), SIGUSR1);
|
||||||
return true;
|
return true;
|
||||||
} catch (Throwable $e) {}
|
} catch (Throwable $e) {}
|
||||||
|
} else {
|
||||||
|
Timer::add(1, function () {
|
||||||
|
Worker::stopAll();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user