mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 06:47:54 +01:00
PeerGroup: don't try and trigger connections during shutdown
This commit is contained in:
parent
bc60f0d1f2
commit
653773d67a
1 changed files with 2 additions and 1 deletions
|
@ -507,7 +507,8 @@ public class PeerGroup implements TransactionBroadcaster {
|
|||
|
||||
private void triggerConnections() {
|
||||
// Run on a background thread due to the need to potentially retry and back off in the background.
|
||||
executor.execute(triggerConnectionsJob);
|
||||
if (!executor.isShutdown())
|
||||
executor.execute(triggerConnectionsJob);
|
||||
}
|
||||
|
||||
/** The maximum number of connections that we will create to peers. */
|
||||
|
|
Loading…
Add table
Reference in a new issue