Skip to content

Commit

Permalink
Merge pull request HelloZeroNet#213 from avanerk/refactor-peer
Browse files Browse the repository at this point in the history
fixed retry loop, instead of looping 3 times it looped 2 times.
  • Loading branch information
HelloZeroNet committed Nov 3, 2015
2 parents 3764f98 + ac0eb25 commit bd67d8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Peer/Peer.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def request(self, cmd, params={}, stream_to=None):
self.onConnectionError()
return None # Connection failed

for retry in range(1, 3): # Retry 3 times
for retry in range(0, 3): # Retry 3 times
try:
res = self.connection.request(cmd, params, stream_to)
if not res:
Expand Down

0 comments on commit bd67d8f

Please sign in to comment.