From 80fdef434832784111a161c243b598f2ca6fdafd Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Wed, 9 Mar 2016 10:53:01 -0800 Subject: [PATCH] Ensure the heartbeat has a valid value before the thread starts --- interface/src/Application.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 0d6a36f583..ab1a326698 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -244,6 +244,8 @@ public: // Set the heartbeat on launch DeadlockWatchdogThread() { QTimer* heartbeatTimer = new QTimer(); + // Give the heartbeat an initial value + _heartbeat = usecTimestampNow(); connect(heartbeatTimer, &QTimer::timeout, [this] { _heartbeat = usecTimestampNow(); });