mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-12-19 21:15:25 +00:00
Fix timing issue with cleanup
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user