diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-12-03 01:13:06 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-12-03 01:13:06 +0000 |
commit | 490f351cecd3bdc9f0ecb792a8df75e7a9e31e30 (patch) | |
tree | c38cc3b38e8d51a9b0830271bcb480c4994c3819 /net/dns.lua | |
parent | 85cf0d26611e9b21914e8403f9c107d91a4a656b (diff) | |
download | prosody-490f351cecd3bdc9f0ecb792a8df75e7a9e31e30.tar.gz prosody-490f351cecd3bdc9f0ecb792a8df75e7a9e31e30.zip |
net.dns: Fix for blocking dns lookups to find waiting coroutines correctly (not that we use this in Prosody...)
Diffstat (limited to 'net/dns.lua')
-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 9863164d..08bc53a9 100644 --- a/net/dns.lua +++ b/net/dns.lua @@ -745,7 +745,7 @@ function resolver:receive(rset) -- - - - - - - - - - - - - - - - - receive if not next(self.active) then self:closeall(); end -- was the query on the wanted list? - local q = response.question; + local q = response.question[1]; local cos = get(self.wanted, q.class, q.type, q.name); if cos then for co in pairs(cos) do |