mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 21:47:40 -05:00
fix: Network interface not shutting down correctly
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user