Software /
code /
prosody
Comparison
net/dns.lua @ 3057:ca1fe9f74bd0
net.dns: Remove redundant locals declaration
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 20 May 2010 10:46:08 +0100 |
parent | 3056:c585678b3ecb |
child | 3324:070c8ba71b76 |
comparison
equal
deleted
inserted
replaced
3056:c585678b3ecb | 3057:ca1fe9f74bd0 |
---|---|
851 | 851 |
852 function resolver:lookup(qname, qtype, qclass) -- - - - - - - - - - lookup | 852 function resolver:lookup(qname, qtype, qclass) -- - - - - - - - - - lookup |
853 self:query (qname, qtype, qclass) | 853 self:query (qname, qtype, qclass) |
854 while self:pulse() do | 854 while self:pulse() do |
855 local recvt = {} | 855 local recvt = {} |
856 local i, s | |
857 for i, s in ipairs(self.socket) do | 856 for i, s in ipairs(self.socket) do |
858 recvt[i] = s | 857 recvt[i] = s |
859 end | 858 end |
860 socket.select(recvt, nil, 4) | 859 socket.select(recvt, nil, 4) |
861 end | 860 end |