Skip to content

Commit

Permalink
fix disconnect repeat
Browse files Browse the repository at this point in the history
  • Loading branch information
pdxwebdev committed Apr 12, 2022
1 parent b9a0593 commit 5d97744
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yadacoin/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,10 @@ async def background_message_sender(self):
for peer_cls in list(self.config.nodeServer.inbound_streams.keys()):
if x[0] in self.config.nodeServer.inbound_streams[peer_cls]:
if retry_attempts[x] > 10:
for y in self.config.nodeServer.retry_messages:
for y in list(self.config.nodeServer.retry_messages):
if y[0] == x[0]:
del self.config.nodeServer.retry_messages[y]
for y in retry_attempts:
for y in list(retry_attempts):
if y[0] == x[0]:
del retry_attempts[y]
await self.remove_peer(self.config.nodeServer.inbound_streams[peer_cls][x[0]])
Expand Down

0 comments on commit 5d97744

Please sign in to comment.