diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-10-13 11:13:52 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-10-13 11:13:52 +0100 |
commit | 257023aae10ea18352719f60fc963a219dcfad7b (patch) | |
tree | d2c7357dc8a8824cd9774aea159684bfa2642ac6 /net | |
parent | bc7fbf59cc383c4d3d4beb7054e75ba51b2396ca (diff) | |
parent | 396757941327fb937b8f05a3d7822e6ce65efa0c (diff) | |
download | prosody-257023aae10ea18352719f60fc963a219dcfad7b.tar.gz prosody-257023aae10ea18352719f60fc963a219dcfad7b.zip |
Merge with 0.5
Diffstat (limited to 'net')
-rw-r--r-- | net/dns.lua | 7 |
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 |