PHPDaemon\Network\Pool::onConfigUpdated PHP Method

onConfigUpdated() public method

Called when worker is going to update configuration
public onConfigUpdated ( ) : void
return void
    public function onConfigUpdated()
    {
        if (Daemon::$process instanceof Thread\Worker) {
            if ($this->config === null) {
                $this->disable();
            } else {
                $this->enable();
            }
        }
        if ($defaults = $this->getConfigDefaults()) {
            $this->config->imposeDefault($defaults);
        }
        $this->applyConfig();
    }