From f77ec470d75f4b8fb81b1abca4ee3b73f1ad8b22 Mon Sep 17 00:00:00 2001
From: Daira Hopwood <david-sarah@jacaranda.org>
Date: Tue, 28 May 2013 19:52:47 +0100
Subject: [PATCH] iputil.py: minor cleanup to avoid dropping a Deferred.

Signed-off-by: Daira Hopwood <david-sarah@jacaranda.org>
---
 src/allmydata/util/iputil.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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