Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autohost: Stop HttpServer when stopping MinecraftServer #89

Merged
merged 1 commit into from
Oct 16, 2023
Merged

autohost: Stop HttpServer when stopping MinecraftServer #89

merged 1 commit into from
Oct 16, 2023

Conversation

unilock
Copy link
Contributor

@unilock unilock commented Oct 11, 2023

This PR fixes a bug where, when using Polymer's autohost module to automatically generate and host a resource pack via a built-in web server, the server would hang until manually interrupted when stopped via the /stop command.

The added @Inject uses the same injection point as Fabric API's ServerLifecycleEvents.SERVER_STOPPED.

(this targets dev/1.20 instead of dev/1.20.2 because QFAPI (my use case) still hasn't updated yet; it should be mergeable as-is to the latter branch though)

Fixes dedicated server apparently freezing when stopping via /stop command; now exits cleanly

Mixin uses the same injection point as Fabric API's ServerLifecycleEvents.SERVER_STOPPED

Signed-off-by: unilock <[email protected]>
@Patbox Patbox merged commit 656382e into Patbox:dev/1.20 Oct 16, 2023
1 check passed
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.

2 participants