git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8584
e03df62e-2008-0410-955e-
edbf42e46eb7
void OnLookupComplete(const string &result, unsigned int ttl, bool cached, int resultnum = 0)
{
+ ServerInstance->Log(DEBUG,"HTTPResolver::OnLookupComplete");
if (!resultnum)
socket->Connect(result);
else
- socket->Connect(orig);
+ socket->OnClose();
}
void OnError(ResolverError e, const string &errmsg)
{
Instance->Log(DEBUG,"HTTPSocket::Connect");
strlcpy(this->IP, ip.c_str(), MAXBUF);
-
+
if (!this->DoConnect())
- {
- delete this;
- }
+ this->Close();
}
bool HTTPSocket::OnConnected()