Diff

net/dns.lua @ 2387:92264ee3a0e4

net.dns: Update synchronous path for new connection API
author Brian Cully <bjc@junctionnetworks.com>
date Mon, 21 Dec 2009 17:03:47 +0000
parent 2301:8a01b0898679
child 2425:772b2caf762e
line wrap: on
line diff
--- a/net/dns.lua	Mon Dec 21 16:52:12 2009 +0000
+++ b/net/dns.lua	Mon Dec 21 17:03:47 2009 +0000
@@ -723,7 +723,7 @@
 	for i,sock in pairs(rset) do
 
 		if self.socketset[sock] then
-			local packet = sock:receive();
+			local packet = sock.receive();
 			if packet then
 				response = self:decode(packet);
 				if response and self.active[response.header.id]