Software /
code /
prosody
Comparison
net/dns.lua @ 453:a1efb2cb4f9c
Quickfix for dns.lua to not crash on failed connection to name servers
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 28 Nov 2008 22:47:22 +0500 |
parent | 399:93b6587d9afb |
child | 519:cccd610a0ef9 |
comparison
equal
deleted
inserted
replaced
452:613c5c6bdce4 | 453:a1efb2cb4f9c |
---|---|
689 queries[question] = nil | 689 queries[question] = nil |
690 if not next (queries) then self.active[id] = nil end | 690 if not next (queries) then self.active[id] = nil end |
691 if not next (self.active) then return nil end | 691 if not next (self.active) then return nil end |
692 else | 692 else |
693 -- print ('retry', o.server, o.delay) | 693 -- print ('retry', o.server, o.delay) |
694 self.socket[o.server]:send (o.packet) | 694 local _a = self.socket[o.server]; |
695 if _a then _a:send (o.packet) end | |
695 o.retry = self.time + self.delays[o.delay] | 696 o.retry = self.time + self.delays[o.delay] |
696 end end end end | 697 end end end end |
697 | 698 |
698 if next (self.active) then return true end | 699 if next (self.active) then return true end |
699 return nil | 700 return nil |