mirror of https://github.com/halo-dev/halo
Fix the problem of getting stuck on VM exit (#2919)
#### What type of PR is this? /kind bug /area core #### What this PR does / why we need it: Shutdown AsyncLogWriter on VM exit. #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/2901 #### Does this PR introduce a user-facing change? ```release-note None ```pull/2923/head
parent
52906f21c1
commit
cfb66b0faa
|
@ -96,7 +96,7 @@ public class VisitLogWriter implements InitializingBean, DisposableBean {
|
|||
this.started = false;
|
||||
interruptThread = true;
|
||||
asyncLogWriter.dispose();
|
||||
executorService.shutdown();
|
||||
executorService.shutdownNow();
|
||||
}
|
||||
|
||||
static class AsyncLogWriter implements Disposable {
|
||||
|
|
Loading…
Reference in New Issue