Skip to content

Commit 4e410e4

Browse files
Fixed crash in State Signal
1 parent e0060d0 commit 4e410e4

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Implementation/Core/amc_statesignal.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ namespace AMC {
8686
{
8787
if (m_pTelemetryInQueueMarker.get() != nullptr) {
8888
m_pTelemetryInQueueMarker->finishMarker();
89+
m_pTelemetryInQueueMarker = nullptr;
8990
}
9091

9192
if (m_pTelemetryInProcessMarker.get () != nullptr) {
@@ -139,9 +140,7 @@ namespace AMC {
139140

140141
bool CStateSignalMessage::hadReactionTimeout(uint64_t nGlobalTimestamp)
141142
{
142-
uint64_t nInQueueTimestamp = m_pTelemetryInQueueMarker->getStartTimestamp();
143-
144-
uint64_t nTimeoutTimestamp = nInQueueTimestamp + (uint64_t)m_nReactionTimeoutInMS * 1000;
143+
uint64_t nTimeoutTimestamp = m_nCreationTimestamp + (uint64_t)m_nReactionTimeoutInMS * 1000;
145144
return (nGlobalTimestamp >= nTimeoutTimestamp);
146145
}
147146

0 commit comments

Comments
 (0)