mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-20 07:46:05 -04:00
Stop broadcasting after a timeout or cancellation
This commit is contained in:
parent
0d32a3b5ce
commit
00df057e09
@ -133,6 +133,8 @@ public class BroadcastHandler implements PeerManager.Listener {
|
||||
|
||||
log.info("Broadcast message to {} peers out of {} total connected peers.", numOfPeers, connectedPeersSet.size());
|
||||
for (int i = 0; i < numOfPeers; i++) {
|
||||
if (stopped)
|
||||
break; // do not continue sending after a timeout or a cancellation
|
||||
final long minDelay = i * 30 * factor + 1;
|
||||
final long maxDelay = minDelay * 2 + 30 * factor;
|
||||
final Connection connection = connectedPeersList.get(i);
|
||||
|
Loading…
x
Reference in New Issue
Block a user