iputil.py: minor cleanup to avoid dropping a Deferred.

Signed-off-by: Daira Hopwood <david-sarah@jacaranda.org>
This commit is contained in:
Daira Hopwood 2013-05-28 19:52:47 +01:00
parent 8e31d66cd0
commit f77ec470d7

View File

@ -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