Quickfix for dns.lua to not crash on failed connection to name servers

This commit is contained in:
Waqas Hussain 2008-11-28 22:47:22 +05:00
parent 47761d875a
commit e26768484b

View file

@ -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