mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
Quickfix for dns.lua to not crash on failed connection to name servers
This commit is contained in:
parent
47761d875a
commit
e26768484b
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue