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 | 3df40be7ea0c5515d05180f7b19c0b5d8e887dab (patch) | |
tree | 612531dd33871f18d2806c71e2dbd8cf9063208b | |
parent | a5161776319695ab00b67d421e20c2d6969def81 (diff) | |
download | prosody-3df40be7ea0c5515d05180f7b19c0b5d8e887dab.tar.gz prosody-3df40be7ea0c5515d05180f7b19c0b5d8e887dab.zip |
net.dns: Preserve metatable on manual cache purge
-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 |