summaryrefslogtreecommitdiff
path: root/src/dns.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-03-23 13:54:16 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-03-23 13:54:16 +0000
commit0a331a3b64b2b531422bac0767e26dfcf56a0413 (patch)
tree30ab13614748414e87e6e0bfde388f2609b6e460 /src/dns.cpp
parent13e2fa5fead2bce145d15c89dd9006f113367591 (diff)
Calling OnError from Resolver's constructor is broken; just use the exception
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12657 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/dns.cpp')
-rw-r--r--src/dns.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/dns.cpp b/src/dns.cpp
index 8526d5be2..f6a609cc0 100644
--- a/src/dns.cpp
+++ b/src/dns.cpp
@@ -904,10 +904,7 @@ Resolver::Resolver(const std::string &source, QueryType qt, bool &cached, Module
}
if (this->myid == -1)
{
- this->OnError(RESOLVER_NSDOWN, "Nameserver is down");
- throw ModuleException("Resolver: Couldnt get an id to make a request");
- /* We shouldnt get here really */
- return;
+ throw ModuleException("Resolver: Couldn't get an id to make a request");
}
else
{