Skip to content

Commit

Permalink
Always shutdown the miner executor on exit (hyperledger#4353)
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio Di Fabio <[email protected]>
  • Loading branch information
fab-10 authored and garyschulte committed Sep 7, 2022
1 parent ef409e3 commit 83408a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

### Bug Fixes
- Accept wit/80 from Nethermind [#4279](https://github.com/hyperledger/besu/pull/4279)
- Properly shutdown the miner executor, to avoid waiting 30 seconds when stopping [#4353](https://github.com/hyperledger/besu/pull/4353)


## 22.7.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,10 @@ public void start() {
@Override
public void stop() {
synchronized (this) {
if (state != State.RUNNING) {
return;
if (state == State.RUNNING) {
haltCurrentMiningOperation();
}
state = State.STOPPED;
haltCurrentMiningOperation();
executor.shutDown();
}
}
Expand Down

0 comments on commit 83408a2

Please sign in to comment.