Review failed
This commit is contained in:
@@ -762,7 +762,14 @@ func (m *Manager) turnEnded(ctx context.Context, l *live, res endResult) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
m.snapshotSoon(l, api.SnapshotTriggerTurnEnd, 0)
|
||||
mergingBy := ""
|
||||
if finished && !handoff {
|
||||
mergingBy, err = m.store.MergingBy(ctx, l.taskID)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
m.snapshotSoon(l, api.SnapshotTriggerTurnEnd, 0, mergingBy == "")
|
||||
|
||||
if res.window > 0 {
|
||||
err = m.updateContext(ctx, l, l.contextUsed, res.window)
|
||||
|
||||
Reference in New Issue
Block a user