void Rehash(const std::string& dnsserver, std::string sourceaddr, unsigned int sourceport)
{
- if (this->GetFd() > -1)
+ if (this->HasFd())
{
SocketEngine::Shutdown(this, 2);
SocketEngine::Close(this);
- /* Remove expired entries from the cache */
- this->Tick(ServerInstance->Time());
+ // Remove all entries from the cache.
+ cache.clear();
}
irc::sockets::aptosa(dnsserver, DNS::PORT, myserver);