diff --git a/appserver/monitoring-console/core/src/main/java/fish/payara/monitoring/runtime/MonitoringConsoleRuntimeImpl.java b/appserver/monitoring-console/core/src/main/java/fish/payara/monitoring/runtime/MonitoringConsoleRuntimeImpl.java index 82e94d7645c..830c6aece56 100644 --- a/appserver/monitoring-console/core/src/main/java/fish/payara/monitoring/runtime/MonitoringConsoleRuntimeImpl.java +++ b/appserver/monitoring-console/core/src/main/java/fish/payara/monitoring/runtime/MonitoringConsoleRuntimeImpl.java @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright (c) 2020-2021 Payara Foundation and/or its affiliates. All rights reserved. + * Copyright (c) 2020-2024 Payara Foundation and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development @@ -168,6 +168,8 @@ public void postConstruct() { public void event(Event event) { if (event.is(EventTypes.SERVER_READY)) { init(); + } else if (event.is(EventTypes.PREPARE_SHUTDOWN)) { + setEnabled(false); } }