]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
iputil.py: minor cleanup to avoid dropping a Deferred.
authorDaira Hopwood <david-sarah@jacaranda.org>
Tue, 28 May 2013 18:52:47 +0000 (19:52 +0100)
committerDaira 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

index c612ffcfec1bb61fe6078eb16a83cc9725f641d2..d1b8fc9c19462634f8380049bd54937610f4a7ef 100644 (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