mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-14 11:15:51 +00:00
PeerGroup: ignore another source of RejectedExecutionException during shutdown
This commit is contained in:
parent
653773d67a
commit
0d51cee24f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user