mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
impr: Make ImHex not use lots of CPU when waiting for conditions
This commit is contained in:
@@ -16,9 +16,10 @@ namespace hex::plugin::builtin {
|
||||
|
||||
void handleNetworkInterfaceService() {
|
||||
if (!networkInterfaceServiceEnabled) {
|
||||
std::this_thread::yield();
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||
return;
|
||||
}
|
||||
|
||||
static wolv::net::SocketServer networkInterfaceServer(31337);
|
||||
networkInterfaceServer.accept([](auto, const std::vector<u8> &data) -> std::vector<u8> {
|
||||
nlohmann::json result;
|
||||
|
||||
Reference in New Issue
Block a user