From 055e18058f3c9d77767898a8891dbd804b10b8c8 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 4 Nov 2023 22:20:22 +0100 Subject: [PATCH] fix: Network interface not shutting down correctly --- plugins/builtin/source/content/background_services.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/builtin/source/content/background_services.cpp b/plugins/builtin/source/content/background_services.cpp index b649d7a07..20d7f6298 100644 --- a/plugins/builtin/source/content/background_services.cpp +++ b/plugins/builtin/source/content/background_services.cpp @@ -21,6 +21,11 @@ namespace hex::plugin::builtin { } static wolv::net::SocketServer networkInterfaceServer(31337); + + EventManager::subscribe([]{ + networkInterfaceServer.shutdown(); + }); + networkInterfaceServer.accept([](auto, const std::vector &data) -> std::vector { nlohmann::json result;