PeerGroup: don't try and trigger connections during shutdown

This commit is contained in:
Mike Hearn
2015-01-29 19:24:14 +01:00
parent bc60f0d1f2
commit 653773d67a

View File

@@ -507,6 +507,7 @@ 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.
if (!executor.isShutdown())
executor.execute(triggerConnectionsJob);
}