改名
This commit is contained in:
@@ -64,8 +64,7 @@ class OnWorkerStart extends Callback
|
||||
if ($sigkill === false) {
|
||||
return $server->stop($workerId);
|
||||
}
|
||||
while ($server->stats()['coroutine_num'] > 0) {
|
||||
var_dump($server->stats()['coroutine_num']);
|
||||
while (Snowflake::app()->isRun()) {
|
||||
sleep(1);
|
||||
}
|
||||
return $server->stop($workerId);
|
||||
|
||||
@@ -106,7 +106,7 @@ abstract class BaseApplication extends Service
|
||||
public function increment()
|
||||
{
|
||||
$this->taskNumber += 1;
|
||||
if ($this->taskNumber <= 1) {
|
||||
if ($this->taskNumber < 1) {
|
||||
$this->taskNumber = 0;
|
||||
$this->state = 'SWOOLE_WORKER_IDLE';
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user