From: Daira Hopwood Date: Tue, 28 May 2013 18:52:47 +0000 (+0100) Subject: iputil.py: minor cleanup to avoid dropping a Deferred. X-Git-Tag: allmydata-tahoe-1.10.1a1~235 X-Git-Url: https://git.rkrishnan.org/vdrive/%22news.html?a=commitdiff_plain;h=f77ec470d75f4b8fb81b1abca4ee3b73f1ad8b22;p=tahoe-lafs%2Ftahoe-lafs.git iputil.py: minor cleanup to avoid dropping a Deferred. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/util/iputil.py b/src/allmydata/util/iputil.py index c612ffcf..d1b8fc9c 100644 --- a/src/allmydata/util/iputil.py +++ b/src/allmydata/util/iputil.py @@ -131,7 +131,8 @@ def get_local_ip_for(target): except socket.error: # no route to that host localip = None - port.stopListening() # note, this returns a Deferred + d = port.stopListening() + d.addErrback(log.err) return localip