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

Shutdown endpoint #28

Closed

Conversation

VasilisThePikachu
Copy link
Member

@VasilisThePikachu VasilisThePikachu commented May 9, 2024

For the types you need to just kill the server now

(yes its kinda meh coded)

For the types you need to just kill the server now
}

await instance.DoStopCommandAsync(new ServerInstanceStopCommand());
await instance.ForceShutdownServerAsync();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can't just call this function from the API handler. You need to post a message into the actor queue like DoStopCommandAsync does. And make it a new command that properly sets the stopped flag so you don't need a separate DoStopCommandAsync call.

@VasilisThePikachu
Copy link
Member Author

No intentions to work on this currently. Sorry

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