PHPDaemon\Examples\ExampleAsteriskClient::onShutdown PHP Method

onShutdown() public method

Called when application instance is going to shutdown.
public onShutdown ( $graceful = false ) : boolean
return boolean Ready to shutdown?
    public function onShutdown($graceful = false)
    {
        if ($this->asteriskclient) {
            return $this->asteriskclient->onShutdown();
        }
        return true;
    }