Exemplo n.º 1
0
 public function OnWorkerStop(\swoole_server $server, $worker_id)
 {
     if ($server->taskworker) {
         $this->taskerServer = Container::GetInstance(ITaskWorkerServer::class);
         $this->taskerServer->OnTaskWorkerStop($server, $worker_id);
     } else {
         $this->workerServer = Container::GetInstance(IWorkerServer::class);
         $this->workerServer->OnWorkerStop($server, $worker_id);
     }
 }