mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 02:01:31 +00:00
iputil.py: minor cleanup to avoid dropping a Deferred.
Signed-off-by: Daira Hopwood <david-sarah@jacaranda.org>
This commit is contained in:
parent
8e31d66cd0
commit
f77ec470d7
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user