eee
This commit is contained in:
@@ -17,7 +17,7 @@ use Swoole\Coroutine;
|
||||
abstract class BaseProcess implements OnProcessInterface
|
||||
{
|
||||
|
||||
protected bool $isStop = false;
|
||||
private bool $stop = false;
|
||||
|
||||
|
||||
protected bool $redirect_stdin_and_stdout = FALSE;
|
||||
@@ -63,7 +63,7 @@ abstract class BaseProcess implements OnProcessInterface
|
||||
*/
|
||||
public function isStop(): bool
|
||||
{
|
||||
return $this->isStop;
|
||||
return $this->stop;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -94,9 +94,9 @@ abstract class BaseProcess implements OnProcessInterface
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public function onProcessStop(): void
|
||||
public function stop(): void
|
||||
{
|
||||
$this->isStop = true;
|
||||
$this->stop = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ abstract class BaseProcess implements OnProcessInterface
|
||||
*/
|
||||
protected function onShutdown($data): void
|
||||
{
|
||||
$this->isStop = true;
|
||||
$this->stop = true;
|
||||
$value = Context::get('waite:process:message');
|
||||
$this->logger->alert('Process ' . $this->getName() . ' stop');
|
||||
if (!is_null($value) && Coroutine::exists((int)$value)) {
|
||||
|
||||
Reference in New Issue
Block a user