aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-28 18:06:29 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-28 18:06:29 +0000
commit121e93a07ad29500c1b8e1c56efff7055cf324bc (patch)
tree47871ab0d4c73c83e2f231a6f62b9f3b7dcd730b /net
parent77c094c25a133609d7b30b748d62f4e9a78775b5 (diff)
parente26768484b03eaa827f59b85d367fabbb43fdc88 (diff)
downloadprosody-121e93a07ad29500c1b8e1c56efff7055cf324bc.tar.gz
prosody-121e93a07ad29500c1b8e1c56efff7055cf324bc.zip
Merge from waqas
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