Skip to content

Commit

Permalink
HLS: nil cmd after exited.
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k1o committed Sep 28, 2021
1 parent 68977c0 commit 903b44c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hls/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ func (m *ManagerCtx) Start() error {

err := os.RemoveAll(m.tempdir)
m.logger.Err(err).Msg("removing tempdir")

m.mu.Lock()
m.cmd = nil
m.mu.Unlock()
}()

return err
Expand Down

0 comments on commit 903b44c

Please sign in to comment.