mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-19 05:35:49 +00:00
PeerGroup: don't try and trigger connections during shutdown
This commit is contained in:
parent
bc60f0d1f2
commit
653773d67a
@ -507,6 +507,7 @@ public class PeerGroup implements TransactionBroadcaster {
|
|||||||
|
|
||||||
private void triggerConnections() {
|
private void triggerConnections() {
|
||||||
// Run on a background thread due to the need to potentially retry and back off in the background.
|
// Run on a background thread due to the need to potentially retry and back off in the background.
|
||||||
|
if (!executor.isShutdown())
|
||||||
executor.execute(triggerConnectionsJob);
|
executor.execute(triggerConnectionsJob);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user