Skip to content

Commit

Permalink
fix(paper): shutdown metrics only if initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
Apehum committed Dec 27, 2024
1 parent c0d83bc commit 653d4a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class PaperVoiceServer(
}

public override fun onShutdown() {
metrics.shutdown()
if (this::metrics.isInitialized) metrics.shutdown()
super.onShutdown()
minecraftServerLib.onShutdown()
}
Expand Down

0 comments on commit 653d4a8

Please sign in to comment.