platform-mc: Correct the discovered terminus condition
When the terminus is discovered, the terminus shared pointer will be
added to `termini` list. So `termini[tid]` will not be `nullptr`.
Correct the discovered terminus condition.
Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com>
Change-Id: I070e927d34a49d0fdbc02fcd9dbbcd4be2f897a7
diff --git a/platform-mc/event_manager.cpp b/platform-mc/event_manager.cpp
index a784cdd..139438b 100644
--- a/platform-mc/event_manager.cpp
+++ b/platform-mc/event_manager.cpp
@@ -377,7 +377,7 @@
return rc;
}
- if (termini.contains(tid) && !termini[tid])
+ if (termini.contains(tid) && termini[tid])
{
auto tmp = termini[tid]->getTerminusName();
if (tmp && !tmp.value().empty())