未验证 提交 3a624d7e 编写于 作者: V von gosling 提交者: GitHub

feat(shutdown): Ignore IllegalStateException when remove shutdown hook

[ISSUE 1491] Ignore IllegalStateException when remove shutdown hook
......@@ -216,7 +216,11 @@ public class AsyncTraceDispatcher implements TraceDispatcher {
public void removeShutdownHook() {
if (shutDownHook != null) {
try {
Runtime.getRuntime().removeShutdownHook(shutDownHook);
} catch (IllegalStateException e) {
// ignore - VM is already shutting down
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册