EntityManager: Flip condition to start removed timer
Use the condition to select the behaviour we want rather than the one we
don't to improve readability.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I0f31d6d093043d1edc8292b8f2acb184854ba033
diff --git a/src/EntityManager.cpp b/src/EntityManager.cpp
index d409365..c0c79aa 100644
--- a/src/EntityManager.cpp
+++ b/src/EntityManager.cpp
@@ -1024,11 +1024,10 @@
&objServer]() {
postToDbus(newConfiguration, systemConfiguration,
objServer);
- if (count != instance)
+ if (count == instance)
{
- return;
+ startRemovedTimer(timer, systemConfiguration);
}
- startRemovedTimer(timer, systemConfiguration);
});
});
});