aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-10-13 11:13:52 +0100
committerMatthew Wild <mwild1@gmail.com>2009-10-13 11:13:52 +0100
commit257023aae10ea18352719f60fc963a219dcfad7b (patch)
treed2c7357dc8a8824cd9774aea159684bfa2642ac6 /net
parentbc7fbf59cc383c4d3d4beb7054e75ba51b2396ca (diff)
parent396757941327fb937b8f05a3d7822e6ce65efa0c (diff)
downloadprosody-257023aae10ea18352719f60fc963a219dcfad7b.tar.gz
prosody-257023aae10ea18352719f60fc963a219dcfad7b.zip
Merge with 0.5
Diffstat (limited to 'net')
-rw-r--r--net/dns.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/dns.lua b/net/dns.lua
index e793c397..fe327ed2 100644
--- a/net/dns.lua
+++ b/net/dns.lua
@@ -558,8 +558,11 @@ function resolver:socket_wrapper_set (func) -- - - - - - - socket_wrapper_set
function resolver:closeall () -- - - - - - - - - - - - - - - - - - closeall
- for i,sock in ipairs (self.socket) do self.socket[i]:close () end
- self.socket = {}
+ for i,sock in ipairs (self.socket) do
+ self.socket[i] = nil;
+ self.socketset[sock] = nil;
+ sock:close();
+ end
end