From d254aafb93290c99dc3053c7a1902872a304f430 Mon Sep 17 00:00:00 2001 From: XMRig Date: Sat, 17 Aug 2019 04:52:33 +0700 Subject: [PATCH] Fixed bug in aliases logic. --- src/backend/common/Threads.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backend/common/Threads.cpp b/src/backend/common/Threads.cpp index 17fc29511..a16ad8bbf 100644 --- a/src/backend/common/Threads.cpp +++ b/src/backend/common/Threads.cpp @@ -61,7 +61,11 @@ size_t xmrig::Threads::read(const rapidjson::Value &value) if (!threads.isEmpty()) { move(member.name.GetString(), std::move(threads)); } + } + } + for (auto &member : value.GetObject()) { + if (member.value.IsArray() || member.value.IsObject()) { continue; }