X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fmodules%2Fdns.h;h=400d2085d450d55b53f5772860b082e30e1d3283;hb=ae6967b8b30ebc956e3158127ecba5d01dc09204;hp=65a1762b33c099f6b3408ba3140a0366d5f36842;hpb=d9d99cd02dadf34bfcc220734ba0c422f0acb3e6;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/modules/dns.h b/include/modules/dns.h index 65a1762b3..400d2085d 100644 --- a/include/modules/dns.h +++ b/include/modules/dns.h @@ -152,14 +152,14 @@ namespace DNS Module* const creator; Request(Manager* mgr, Module* mod, const std::string& addr, QueryType qt, bool usecache = true) - : Timer((ServerInstance->Config->dns_timeout ? ServerInstance->Config->dns_timeout : 5), ServerInstance->Time()) + : Timer((ServerInstance->Config->dns_timeout ? ServerInstance->Config->dns_timeout : 5)) , Question(addr, qt) , manager(mgr) , use_cache(usecache) , id(0) , creator(mod) { - ServerInstance->Timers->AddTimer(this); + ServerInstance->Timers.AddTimer(this); } virtual ~Request() @@ -185,9 +185,9 @@ namespace DNS Query rr(*this); rr.error = ERROR_TIMEDOUT; this->OnError(&rr); + delete this; return false; } }; } // namespace DNS -