Software /
code /
prosody
Changeset
1950:a1d186c8c65a
Merge with 0.5
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 13 Oct 2009 11:13:52 +0100 |
parents | 1948:50128afa7858 (current diff) 1949:e3d777d76b1a (diff) |
children | 1953:64538c620450 |
files | net/dns.lua |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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