mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-25 15:10:18 +01:00
PeerGroup: add a todo about the pinging thread.
This commit is contained in:
parent
52b478a6f8
commit
00bc4e30ee
1 changed files with 2 additions and 0 deletions
|
@ -899,6 +899,8 @@ public class PeerGroup extends AbstractIdleService implements TransactionBroadca
|
|||
return; // Disabled.
|
||||
// Start the process of pinging the peer. Do a ping right now and then ensure there's a fixed delay between
|
||||
// each ping. If the peer is taken out of the peers list then the cycle will stop.
|
||||
//
|
||||
// TODO: This should really be done by a timer integrated with the network thread to avoid races.
|
||||
final Runnable[] pingRunnable = new Runnable[1];
|
||||
pingRunnable[0] = new Runnable() {
|
||||
private boolean firstRun = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue