forked from LBRYCommunity/lbry-sdk
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
|
@defer.inlineCallbacks
|
||||||
def sendRPC(self, contact, method, args):
|
def sendRPC(self, contact, method, args):
|
||||||
while True:
|
for _ in range(constants.rpcAttempts):
|
||||||
try:
|
try:
|
||||||
response = yield self._sendRPC(contact, method, args)
|
response = yield self._sendRPC(contact, method, args)
|
||||||
return response
|
return response
|
||||||
|
|
Loading…
Add table
Reference in a new issue