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;