aboutsummaryrefslogtreecommitdiffstats
path: root/src/dns.cpp
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-03-23 08:53:47 -0500
committerGravatar Daniel De Graaf2010-08-03 17:32:41 -0400
commitb2935d8bd449189882cdb7ad314ddd2786a2f03f (patch)
tree2b3f4f32987e964bae5d41c93da066d3e64c23b1 /src/dns.cpp
parentChange 2.0 cloak function to use variable-length segments (diff)
Calling OnError from Resolver's constructor is broken; just use the exception
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
{