public function remove(NodeConnectionInterface $connection)
    {
        if (false !== $id = array_search($connection, $this->pool, true)) {
            $this->slotmap->reset();
            $this->slots = array_diff($this->slots, array($connection));
            unset($this->pool[$id]);

            return true;
        }

        return false;
    }
public function remove(NodeConnectionInterface $connection)
    {
        if (false !== $id = array_search($connection, $this->pool, true)) {
            $this->slotmap->reset();
            $this->slots = array_diff($this->slots, array($connection));
            unset($this->pool[$id]);

            return true;
        }

        return false;
    }
{@inheritdoc}