From b2935d8bd449189882cdb7ad314ddd2786a2f03f Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Tue, 23 Mar 2010 08:53:47 -0500 Subject: Calling OnError from Resolver's constructor is broken; just use the exception --- src/dns.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/dns.cpp') 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 { -- cgit v1.3.1-10-gc9f91