mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
Ensure the heartbeat has a valid value before the thread starts
This commit is contained in:
parent
a2eb819bc2
commit
80fdef4348
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue