mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 15:22:16 +00:00
PeerGroup: add a todo about the pinging thread.
This commit is contained in:
parent
52b478a6f8
commit
00bc4e30ee
@ -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…
Reference in New Issue
Block a user