Software /
code /
prosody
Diff
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 |
line wrap: on
line diff
--- a/net/dns.lua Fri Nov 28 20:17:20 2008 +0500 +++ b/net/dns.lua Fri Nov 28 22:47:22 2008 +0500 @@ -691,7 +691,8 @@ if not next (self.active) then return nil end else -- print ('retry', o.server, o.delay) - self.socket[o.server]:send (o.packet) + local _a = self.socket[o.server]; + if _a then _a:send (o.packet) end o.retry = self.time + self.delays[o.delay] end end end end