Fix issue with new mapper code
The mapper is now slower and sometimes fails to
discover things by the time we probe them. We were
not clearing the pending probes when this happened
so the object wasn't destroyed. Clear it.
Tested-by: Used current mapper and saw sensors
Change-Id: Iab3d89ede86ed8114ed0032d2d244f8cb040bd48
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/src/EntityManager.cpp b/src/EntityManager.cpp
index 2c08a45..77d4387 100644
--- a/src/EntityManager.cpp
+++ b/src/EntityManager.cpp
@@ -163,6 +163,11 @@
}
}
}
+ if (interfaceConnections.empty())
+ {
+ pendingProbes[interface].clear();
+ return;
+ }
// get managed objects for all interfaces
for (const auto &conn : interfaceConnections)
{