mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-01 21:17:13 +00:00
PeerGroup: don't try and trigger connections during shutdown
This commit is contained in:
@@ -507,7 +507,8 @@ 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.
|
||||||
executor.execute(triggerConnectionsJob);
|
if (!executor.isShutdown())
|
||||||
|
executor.execute(triggerConnectionsJob);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** The maximum number of connections that we will create to peers. */
|
/** The maximum number of connections that we will create to peers. */
|
||||||
|
|||||||
Reference in New Issue
Block a user