Fix timing issue with cleanup

This commit is contained in:
2024-01-17 15:43:46 +01:00
parent 7b13733c9e
commit d630f29753
3 changed files with 12 additions and 7 deletions

View File

@@ -151,7 +151,6 @@ func (ts *Stream) run(start int32) error {
ts.lock.Lock()
ts.heads[encoder_id] = segment
log.Printf("encode %d finished %d", encoder_id, segment)
if ts.isSegmentReady(segment) {
// the current segment is already marked at done so another process has already gone up to here.
cmd.Process.Signal(os.Interrupt)