aboutsummaryrefslogtreecommitdiffstats
path: root/net/dns.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-12-22 14:20:12 +0100
committerKim Alvefur <zash@zash.se>2012-12-22 14:20:12 +0100
commitf7bd5657eb6214748dad7c3c552ea52d13286e5b (patch)
treed6fec8d0358fd613a876fabf790f27dc8635fe19 /net/dns.lua
parent2e1052414f3d76091c3cf9b76250a30219123e9b (diff)
downloadprosody-f7bd5657eb6214748dad7c3c552ea52d13286e5b.tar.gz
prosody-f7bd5657eb6214748dad7c3c552ea52d13286e5b.zip
net.dns: Close voided sockets, so they don't stay in net.server
Diffstat (limited to 'net/dns.lua')
-rw-r--r--net/dns.lua1
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