protected purgeProtocols ( array $protocols ) | ||
$protocols | array | - list of protocol objects to purge |
protected function purgeProtocols(array $protocols)
{
foreach ($protocols as $protocol) {
$host = $protocol->getServerHash();
if (isset($this->sockets[$host])) {
$this->sockets[$host]->disconnect();
unset($this->sockets[$host]);
}
unset($this->protocols[$host]);
}
}