# HG changeset patch # User Matthew Wild # Date 1319055716 14400 # Node ID ac651265766c90147c3de7b70936e872ad5c42d8 # Parent 1b4161970842de30fcf21ea957923bbf499a4f19 net.dns: Preserve metatable on manual cache purge diff -r 1b4161970842 -r ac651265766c net/dns.lua --- a/net/dns.lua Fri Oct 14 00:46:29 2011 +0500 +++ b/net/dns.lua Wed Oct 19 16:21:56 2011 -0400 @@ -705,7 +705,7 @@ end end end - else self.cache = {}; end + else self.cache = setmetatable({}, cache_metatable); end end