Commit 760740e9 authored by Avery Pennarun's avatar Avery Pennarun

Oops, dns_done() crashed if the request had already been timed out.

parent b5707788
......@@ -295,7 +295,7 @@ def _main(listener, fw, ssh_cmd, remotename, python, latency_control,
dnsreqs = {}
def dns_done(chan, data):
peer,timeout = dnsreqs.get(chan)
peer,timeout = dnsreqs.get(chan) or (None,None)
debug3('dns_done: channel=%r peer=%r\n' % (chan, peer))
if peer:
del dnsreqs[chan]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment