add message to shutdown suggesting Ctrl+C if it takes too long

This is an ongoing issue that needs to be resolved properly,
but I'm not sure what's hanging it.
This commit is contained in:
Lion Kortlepel 2022-04-28 14:30:44 +02:00
parent f4eb492d91
commit 34b39aad4d
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -126,6 +126,7 @@ int BeamMPServerMain(MainArguments Arguments) {
bool Shutdown = false;
Application::RegisterShutdownHandler([&Shutdown] {
beammp_info("If this takes too long, you can press Ctrl+C repeatedly to force a shutdown.");
Application::SetSubsystemStatus("Main", Application::Status::ShuttingDown);
Shutdown = true;
});