diff options
author | Matthew Wild <mwild1@gmail.com> | 2011-10-19 16:21:56 -0400 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2011-10-19 16:21:56 -0400 |
commit | 97a0b9f7add62ba930172193cdc2cc504e445422 (patch) | |
tree | 612531dd33871f18d2806c71e2dbd8cf9063208b /net | |
parent | a8fc120451d3bc0cef65e8576a2fa2ea8c5d5427 (diff) | |
download | prosody-97a0b9f7add62ba930172193cdc2cc504e445422.tar.gz prosody-97a0b9f7add62ba930172193cdc2cc504e445422.zip |
net.dns: Preserve metatable on manual cache purge
Diffstat (limited to 'net')
-rw-r--r-- | net/dns.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dns.lua b/net/dns.lua index 7bf5653b..8f428476 100644 --- a/net/dns.lua +++ b/net/dns.lua @@ -705,7 +705,7 @@ function resolver:purge(soft) -- - - - - - - - - - - - - - - - - - - purge end end end - else self.cache = {}; end + else self.cache = setmetatable({}, cache_metatable); end end |