From f7bd5657eb6214748dad7c3c552ea52d13286e5b Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 22 Dec 2012 14:20:12 +0100 Subject: net.dns: Close voided sockets, so they don't stay in net.server --- net/dns.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'net/dns.lua') 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 -- cgit v1.2.3