From 52acbfae73e4702cbaf4ebfb6fedb4b5056aa180 Mon Sep 17 00:00:00 2001 From: vansangpfiev Date: Tue, 17 Dec 2024 12:23:46 +0700 Subject: [PATCH] fix: validate GPU (#1802) --- engine/services/hardware_service.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/services/hardware_service.cc b/engine/services/hardware_service.cc index 97ddacb97..ca1ea4cc6 100644 --- a/engine/services/hardware_service.cc +++ b/engine/services/hardware_service.cc @@ -357,11 +357,11 @@ bool HardwareService::IsValidConfig( auto res = hw_db.LoadHardwareList(); if (res.has_value()) { for (auto const& e : res.value()) { - if (!is_valid(e.software_id)) { - return false; + if (is_valid(e.software_id)) { + return true; } } } - return true; + return false; } } // namespace services