From 537f11c1bd58561f6bbd0942ddf5541d9e1476a4 Mon Sep 17 00:00:00 2001 From: Cameron Dale Date: Fri, 9 May 2008 23:58:32 -0700 Subject: [PATCH] Always return the result at the end of a callback function. --- apt_p2p_Khashmir/khashmir.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apt_p2p_Khashmir/khashmir.py b/apt_p2p_Khashmir/khashmir.py index 54951b7..394d75e 100644 --- a/apt_p2p_Khashmir/khashmir.py +++ b/apt_p2p_Khashmir/khashmir.py @@ -232,6 +232,7 @@ class KhashmirBase(protocol.Factory): if newnode.id not in self.pinging: self.pinging[newnode.id] = reactor.callLater(self.config['MIN_PING_INTERVAL'], self.sendPing, newnode) + return newnode df.addCallback(rePing) def _staleNodeHandler(self, err, old, node, contacted): -- 2.39.5