feat: terminate actorSystem when shutdown worker

This commit is contained in:
tjq 2021-03-11 23:37:05 +08:00
parent 4c89a1e69c
commit 30d0d7d338

View File

@ -195,5 +195,6 @@ public class OhMyWorker implements ApplicationContextAware, InitializingBean, Di
@Override @Override
public void destroy() throws Exception { public void destroy() throws Exception {
timingPool.shutdownNow(); timingPool.shutdownNow();
workerRuntime.getActorSystem().terminate();
} }
} }