Diff

net/dns.lua @ 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
parent 5266:5c3a3ef6b769
child 5340:51c9959c21c0
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