diff --git a/daemon/lokinet.cpp b/daemon/lokinet.cpp index 3b576f504..b63361af8 100644 --- a/daemon/lokinet.cpp +++ b/daemon/lokinet.cpp @@ -601,6 +601,7 @@ SvcCtrlHandler(DWORD dwCtrl) // tell service we are stopping llarp::log::debug(logcat, "Windows service controller gave SERVICE_CONTROL_STOP"); llarp::sys::service_manager->system_changed_our_state(llarp::sys::ServiceState::Stopping); + handle_signal(SIGINT); return; case SERVICE_CONTROL_INTERROGATE: diff --git a/llarp/win32/service_manager.cpp b/llarp/win32/service_manager.cpp index 95f681809..0015158de 100644 --- a/llarp/win32/service_manager.cpp +++ b/llarp/win32/service_manager.cpp @@ -48,7 +48,6 @@ namespace llarp::sys if (st == ServiceState::Stopping) { we_changed_our_state(st); - m_Context->HandleSignal(SIGINT); } }