We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b54821a commit 5c0ecf1Copy full SHA for 5c0ecf1
1 file changed
Engine/DataFeeds/Synchronizer.cs
@@ -164,7 +164,10 @@ public virtual IEnumerable<TimeSlice> StreamData(CancellationToken cancellationT
164
/// Returns true when the first post warmup slice skips past StartDate
165
/// so a time pulse can be emitted to align algorithm time before OnWarmupFinished fires
166
/// </summary>
167
- protected bool ShouldEmitWarmupEndPulse(TimeSlice timeSlice) => Algorithm.IsWarmingUp && timeSlice.Time > WarmupEndUtc;
+ protected bool ShouldEmitWarmupEndPulse(TimeSlice timeSlice)
168
+ {
169
+ return Algorithm.GetLocked() && Algorithm.IsWarmingUp && timeSlice.Time > WarmupEndUtc;
170
+ }
171
172
/// <summary>
173
/// Performs additional initialization steps after algorithm initialization
0 commit comments