Instance: rename Shutdown() to Break()

This commit is contained in:
Max Kellermann
2018-01-29 23:31:41 +01:00
parent b6013a92e0
commit befd669075
4 changed files with 6 additions and 6 deletions

View File

@@ -71,7 +71,7 @@ service_dispatcher(gcc_unused DWORD control, gcc_unused DWORD event_type,
switch (control) {
case SERVICE_CONTROL_SHUTDOWN:
case SERVICE_CONTROL_STOP:
instance->Shutdown();
instance->Break();
return NO_ERROR;
default:
return NO_ERROR;
@@ -107,7 +107,7 @@ console_handler(DWORD event)
// regardless our thread is still active.
// If this did not happen within 3 seconds
// let's shutdown anyway.
instance->Shutdown();
instance->Break();
// Under debugger it's better to wait indefinitely
// to allow debugging of shutdown code.
Sleep(IsDebuggerPresent() ? INFINITE : 3000);