Skip to content

Commit

Permalink
bugfix: disable monitoring collection before server shuts down
Browse files Browse the repository at this point in the history
  • Loading branch information
lprimak committed Aug 9, 2024
1 parent 89d6c49 commit 4ee27fe
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 4ee27fe

Please sign in to comment.