mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-02-16 07:10:40 +00:00
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:
@@ -126,6 +126,7 @@ int BeamMPServerMain(MainArguments Arguments) {
|
|||||||
|
|
||||||
bool Shutdown = false;
|
bool Shutdown = false;
|
||||||
Application::RegisterShutdownHandler([&Shutdown] {
|
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);
|
Application::SetSubsystemStatus("Main", Application::Status::ShuttingDown);
|
||||||
Shutdown = true;
|
Shutdown = true;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user