projects
/
quix0rs-apt-p2p.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Always return the result at the end of a callback function.
[quix0rs-apt-p2p.git]
/
apt_p2p_Khashmir
/
khashmir.py
diff --git
a/apt_p2p_Khashmir/khashmir.py
b/apt_p2p_Khashmir/khashmir.py
index 54951b7e5719093b53d614c857af7846245643ad..394d75e42fa6af2188db8d07c10d6f8d0a63510c 100644
(file)
--- 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):