Skip to content

fix: Improve bStats metrics reliability and error handling#12514

Closed
AtomicElectronCreates wants to merge 1 commit into
PaperMC:mainfrom
AtomicElectronCreates:patch-2
Closed

fix: Improve bStats metrics reliability and error handling#12514
AtomicElectronCreates wants to merge 1 commit into
PaperMC:mainfrom
AtomicElectronCreates:patch-2

Conversation

@AtomicElectronCreates
Copy link
Copy Markdown

This PR improves the Metrics.java file by:

Properly closing resources with try-with-resources

Adding null checks with Objects.requireNonNull()

Better error handling for config file saving

Safer thread cleanup on shutdown

Atomic file writes for config

More robust HTTP connection handling

@MiniDigger
Copy link
Copy Markdown
Member

This PR is impossible to review because of the amount of unrelated changes in it and most of the actual changes are questionable. In general it looks like "A"I" slop. Please refrain from opening such PRs in the future.

@MiniDigger MiniDigger closed this May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants