mirror of
https://github.com/bluenviron/mediamtx
synced 2024-12-15 11:14:43 +00:00
hls: pring exact reason why a muxer is closed
This commit is contained in:
parent
ed635db87e
commit
92163a2b0e
@ -398,7 +398,7 @@ func (m *hlsMuxer) runInner(innerCtx context.Context, innerReady chan struct{})
|
||||
if !m.hlsAlwaysRemux && time.Since(t) >= closeAfterInactivity {
|
||||
m.ringBuffer.Close()
|
||||
<-writerDone
|
||||
return nil
|
||||
return fmt.Errorf("not used anymore")
|
||||
}
|
||||
|
||||
case err := <-writerDone:
|
||||
@ -407,7 +407,7 @@ func (m *hlsMuxer) runInner(innerCtx context.Context, innerReady chan struct{})
|
||||
case <-innerCtx.Done():
|
||||
m.ringBuffer.Close()
|
||||
<-writerDone
|
||||
return nil
|
||||
return fmt.Errorf("terminated")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user