Changeset

4400:ac651265766c

net.dns: Preserve metatable on manual cache purge
author Matthew Wild <mwild1@gmail.com>
date Wed, 19 Oct 2011 16:21:56 -0400
parents 4399:1b4161970842
children 4401:0ed617f58404
files net/dns.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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