rtnetlink: Remove redundtant hasExpired() check
We don't need to check if the timer is expired and enabled because the
timer will never be expired if it is enabled.
Tested:
Built and networkd still receives link state transitions and
populates the discovered ip addresses correctly.
Change-Id: I066842af9046190541f868d25319016f34012de3
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/rtnetlink_server.cpp b/rtnetlink_server.cpp
index 9daf9ad..69fb4ec 100644
--- a/rtnetlink_server.cpp
+++ b/rtnetlink_server.cpp
@@ -46,8 +46,7 @@
{
// starting the timer here to make sure that we don't want
// create the child objects multiple times.
- if (!refreshObjectTimer->isEnabled() ||
- refreshObjectTimer->hasExpired())
+ if (!refreshObjectTimer->isEnabled())
{
// if start timer throws exception then let the application
// crash