Changeset

5267:a2080e5c4eda

net.dns: Close voided sockets, so they don't stay in net.server
author Kim Alvefur <zash@zash.se>
date Sat, 22 Dec 2012 14:20:12 +0100
parents 5266:5c3a3ef6b769
children 5268:69964d1cbe66
files net/dns.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/net/dns.lua	Sat Dec 22 12:06:36 2012 +0000
+++ b/net/dns.lua	Sat Dec 22 14:20:12 2012 +0100
@@ -643,6 +643,7 @@
 		self.socket[self.socketset[sock]] = nil;
 		self.socketset[sock] = nil;
 	end
+	sock:close();
 end
 
 function resolver:socket_wrapper_set(func)  -- - - - - - - socket_wrapper_set