summaryrefslogtreecommitdiffstats
path: root/timer.hpp
diff options
context:
space:
mode:
authorRatan Gupta <ratagupt@in.ibm.com>2018-03-07 16:03:53 +0530
committerTom Joseph <tomjoseph@in.ibm.com>2018-03-20 06:02:53 +0000
commit32cbd65b41ffd444819c5bcf988ca1f5f1cfe415 (patch)
tree825d19391833f4ea58cead2cc7eb9642252b74e6 /timer.hpp
parent1247e0baa08711893ab1e3e78d789d6a3ef0a491 (diff)
downloadphosphor-host-ipmid-32cbd65b41ffd444819c5bcf988ca1f5f1cfe415.tar.gz
phosphor-host-ipmid-32cbd65b41ffd444819c5bcf988ca1f5f1cfe415.zip
Timer: Fix the timer expire property.
Presently when the call back associated with timer gets called then the expire property becomes true, which is correct as it tells the timer has expired and calls the callback. On the other hand it doesn't set the expire property to false when it starts the timer. This commit sets the expire property to false when startTimer function gets called. Change-Id: I0bb4fe3c375b2a73d214ba9ccbdf25f223b11449 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
Diffstat (limited to 'timer.hpp')
-rw-r--r--timer.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/timer.hpp b/timer.hpp
index 6a59c0d..e39d85c 100644
--- a/timer.hpp
+++ b/timer.hpp
@@ -67,7 +67,7 @@ class Timer
*
* This is set to true when the timeoutHandler is called into
*/
- bool expired = false;
+ bool expired = true;
/** @brief Initializes the timer object with infinite
* expiration time and sets up the callback handler
OpenPOWER on IntegriCloud