public handleRouterStop ( Thruway\Event\RouterStopEvent $event ) | ||
$event | Thruway\Event\RouterStopEvent |
public function handleRouterStop(RouterStopEvent $event)
{
if ($this->server) {
$this->server->socket->shutdown();
}
foreach ($this->sessions as $k) {
$this->sessions[$k]->shutdown();
}
}