diff options
Diffstat (limited to 'read_fru_data.cpp')
-rw-r--r-- | read_fru_data.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/read_fru_data.cpp b/read_fru_data.cpp index 67bbf9f..ee9ad41 100644 --- a/read_fru_data.cpp +++ b/read_fru_data.cpp @@ -83,7 +83,6 @@ void processFruPropChange(sdbusplus::message::message& msg) for (auto& fru : frus) { bool found = false; - auto& fruId = fru.first; auto& instanceList = fru.second; for (auto& instance : instanceList) { @@ -95,6 +94,8 @@ void processFruPropChange(sdbusplus::message::message& msg) } if (found) { + auto& fruId = fru.first; + cache::fruMap.erase(fruId); break; } |