Skip to content

Commit f4b3bd9

Browse files
bmehta001Copilot
andcommitted
Restore m_scheduledUploadTime position to before LOCKGUARD (match main)
Moving m_scheduledUploadTime inside the LOCKGUARD changes the timing of the delta check in scheduleUpload(), causing fewer events to be delivered within test timeouts. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4533c31 commit f4b3bd9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/tpm/TransmissionPolicyManager.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,10 @@ namespace MAT_NS_BEGIN {
185185
return;
186186
}
187187
m_runningLatency = latency;
188+
m_scheduledUploadTime = std::numeric_limits<uint64_t>::max();
189+
188190
{
189191
LOCKGUARD(m_scheduledUploadMutex);
190-
m_scheduledUploadTime = std::numeric_limits<uint64_t>::max();
191192
m_isUploadScheduled = false; // Allow to schedule another uploadAsync
192193
if ((m_isPaused) || (m_scheduledUploadAborted))
193194
{

0 commit comments

Comments
 (0)