Skip to content

Commit

Permalink
Reverted the time change in PropUntil
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherRabotin committed May 7, 2017
1 parent 8dae6d5 commit 70d0bad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mission.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ func (a *Mission) PropagateUntil(dt time.Time, autoClose bool) {
}
a.propuntilCalled = true
a.autoChanClosing = autoClose
a.StopDT = dt
if !autoClose {
a.StopDT = dt
} else {
a.StopDT = dt.Add(-a.step)
}
a.StartDT = a.CurrentDT.Add(-a.step)
a.Propagate()
}
Expand Down

0 comments on commit 70d0bad

Please sign in to comment.