mirror of https://github.com/WerWolv/ImHex.git
fix: Network interface not shutting down correctly
This commit is contained in:
parent
fa5e32496c
commit
055e18058f
|
@ -21,6 +21,11 @@ namespace hex::plugin::builtin {
|
|||
}
|
||||
|
||||
static wolv::net::SocketServer networkInterfaceServer(31337);
|
||||
|
||||
EventManager::subscribe<EventImHexClosing>([]{
|
||||
networkInterfaceServer.shutdown();
|
||||
});
|
||||
|
||||
networkInterfaceServer.accept([](auto, const std::vector<u8> &data) -> std::vector<u8> {
|
||||
nlohmann::json result;
|
||||
|
||||
|
|
Loading…
Reference in New Issue