obey the rpcAttempts constant on retries
This commit is contained in:
parent
7e3512cbf2
commit
db898307b5
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ class KademliaProtocol(protocol.DatagramProtocol):
|
|||
|
||||
@defer.inlineCallbacks
|
||||
def sendRPC(self, contact, method, args):
|
||||
while True:
|
||||
for _ in range(constants.rpcAttempts):
|
||||
try:
|
||||
response = yield self._sendRPC(contact, method, args)
|
||||
return response
|
||||
|
|
Loading…
Reference in a new issue