projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e31d66
)
iputil.py: minor cleanup to avoid dropping a Deferred.
author
Daira Hopwood
<david-sarah@jacaranda.org>
Tue, 28 May 2013 18:52:47 +0000
(19:52 +0100)
committer
Daira Hopwood
<david-sarah@jacaranda.org>
Tue, 28 May 2013 18:52:47 +0000
(19:52 +0100)
Signed-off-by: Daira Hopwood <david-sarah@jacaranda.org>
src/allmydata/util/iputil.py
patch
|
blob
|
history
diff --git
a/src/allmydata/util/iputil.py
b/src/allmydata/util/iputil.py
index c612ffcfec1bb61fe6078eb16a83cc9725f641d2..d1b8fc9c19462634f8380049bd54937610f4a7ef 100644
(file)
--- 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