aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2008-11-29 11:24:59 +0100
committerTobias Markmann <tm@ayena.de>2008-11-29 11:24:59 +0100
commitabf0d19152cbf880252435d2801d852ce0459df8 (patch)
treebfde55649a88754f29d5bdbd68d3d2817675d3e8 /net
parenta718775bd40db918564a31e90f4c17a98a4cecfc (diff)
parentdcf87bb7c912e4206aae1fd3c959d87e8f59242f (diff)
downloadprosody-abf0d19152cbf880252435d2801d852ce0459df8.tar.gz
prosody-abf0d19152cbf880252435d2801d852ce0459df8.zip
Forced merge.
Diffstat (limited to 'net')
-rw-r--r--net/dns.lua3
1 files changed, 2 insertions, 1 deletions
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