mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-30 19:41:24 +00:00
PeerGroup: ignore another source of RejectedExecutionException during shutdown
This commit is contained in:
@@ -1039,7 +1039,7 @@ public class PeerGroup implements TransactionBroadcaster {
|
||||
return inFlightRecalculations.get(mode);
|
||||
inFlightRecalculations.put(mode, future);
|
||||
}
|
||||
executor.execute(new Runnable() {
|
||||
Runnable command = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
@@ -1089,7 +1089,12 @@ public class PeerGroup implements TransactionBroadcaster {
|
||||
}
|
||||
future.set(result.filter);
|
||||
}
|
||||
});
|
||||
};
|
||||
try {
|
||||
executor.execute(command);
|
||||
} catch (RejectedExecutionException e) {
|
||||
// Can happen during shutdown.
|
||||
}
|
||||
return future;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user