diff options
author | Kim Alvefur <zash@zash.se> | 2012-12-22 14:20:12 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2012-12-22 14:20:12 +0100 |
commit | a7f6283a2e582f5b6b0a920b6e0418ebb9c379d9 (patch) | |
tree | d6fec8d0358fd613a876fabf790f27dc8635fe19 | |
parent | 81b3ba144214371cbfa3ac39d0fae1880cac1302 (diff) | |
download | prosody-a7f6283a2e582f5b6b0a920b6e0418ebb9c379d9.tar.gz prosody-a7f6283a2e582f5b6b0a920b6e0418ebb9c379d9.zip |
net.dns: Close voided sockets, so they don't stay in net.server
-rw-r--r-- | net/dns.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dns.lua b/net/dns.lua index 1950ba73..a134eceb 100644 --- a/net/dns.lua +++ b/net/dns.lua @@ -643,6 +643,7 @@ function resolver:voidsocket(sock) self.socket[self.socketset[sock]] = nil; self.socketset[sock] = nil; end + sock:close(); end function resolver:socket_wrapper_set(func) -- - - - - - - socket_wrapper_set |