# HG changeset patch # User Matthew Wild # Date 1255428832 -3600 # Node ID a1d186c8c65aa5599aa1e36f70a0c406898fa628 # Parent 50128afa7858f5008291309f2dc76b2c679ca5a6# Parent e3d777d76b1ad671c337cc82bef590e415ff589e Merge with 0.5 diff -r 50128afa7858 -r a1d186c8c65a net/dns.lua --- a/net/dns.lua Tue Oct 13 15:00:59 2009 +0500 +++ b/net/dns.lua Tue Oct 13 11:13:52 2009 +0100 @@ -558,8 +558,11 @@ function resolver:closeall () -- - - - - - - - - - - - - - - - - - closeall - for i,sock in ipairs (self.socket) do self.socket[i]:close () end - self.socket = {} + for i,sock in ipairs (self.socket) do + self.socket[i] = nil; + self.socketset[sock] = nil; + sock:close(); + end end