Retry peers only once
This commit is contained in:
parent
7e78fbc16e
commit
129aff2c0c
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ class Peer(object):
|
|||
|
||||
self.log("Send request: %s %s %s %s" % (params.get("site", ""), cmd, params.get("inner_path", ""), params.get("location", "")))
|
||||
|
||||
for retry in range(1, 4): # Retry 3 times
|
||||
for retry in range(1, 2): # Retry 1 times
|
||||
try:
|
||||
if not self.connection:
|
||||
raise Exception("No connection found")
|
||||
|
|
Loading…
Reference in a new issue