Skip to content

Commit

Permalink
don't upload playlist if closed (#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
frostbyte73 authored Feb 28, 2024
1 parent 8ea6b05 commit 1c3af41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/pipeline/sink/segments.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ func (s *SegmentSink) handlePlaylistUpdates(update SegmentUpdate) error {
s.throttle(func() {
s.playlistLock.Lock()
defer s.playlistLock.Unlock()
if s.done.IsBroken() {
return
}

if err := s.uploadPlaylist(); err != nil {
s.callbacks.OnError(err)
Expand Down

0 comments on commit 1c3af41

Please sign in to comment.