mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-11 11:39:02 -04:00
No crash, now we just have to find out why it wont connect
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8584 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
9b3f282196
commit
f87291fa17
@ -61,10 +61,11 @@ class HTTPResolver : public Resolver
|
||||
|
||||
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)
|
||||
@ -251,11 +252,9 @@ void HTTPSocket::Connect(const string &ip)
|
||||
{
|
||||
Instance->Log(DEBUG,"HTTPSocket::Connect");
|
||||
strlcpy(this->IP, ip.c_str(), MAXBUF);
|
||||
|
||||
|
||||
if (!this->DoConnect())
|
||||
{
|
||||
delete this;
|
||||
}
|
||||
this->Close();
|
||||
}
|
||||
|
||||
bool HTTPSocket::OnConnected()
|
||||
|
Loading…
x
Reference in New Issue
Block a user