From e26768484b03eaa827f59b85d367fabbb43fdc88 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Fri, 28 Nov 2008 22:47:22 +0500 Subject: Quickfix for dns.lua to not crash on failed connection to name servers --- net/dns.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/dns.lua b/net/dns.lua index 7364161e..ea1d5d96 100644 --- a/net/dns.lua +++ b/net/dns.lua @@ -691,7 +691,8 @@ function resolver:pulse () -- - - - - - - - - - - - - - - - - - - - - pulse if not next (self.active) then return nil end else -- print ('retry', o.server, o.delay) - self.socket[o.server]:send (o.packet) + local _a = self.socket[o.server]; + if _a then _a:send (o.packet) end o.retry = self.time + self.delays[o.delay] end end end end -- cgit v1.2.3