Skip to content

Commit

Permalink
core: fix for transcoders waiting forever on a O restart if they had …
Browse files Browse the repository at this point in the history
…a previous transcoding session (#2705)
  • Loading branch information
stronk-dev authored Jan 6, 2023
1 parent a3949f3 commit af9de74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/ot_rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ func runTranscoder(n *core.LivepeerNode, orchAddr string, capacity int, caps []c
wg.Wait()
return err
}
wg.Add(1)
if notify.SegData != nil && notify.SegData.AuthToken != nil && len(notify.SegData.AuthToken.SessionId) > 0 && len(notify.Url) == 0 {
// session teardown signal
n.Transcoder.EndTranscodingSession(notify.SegData.AuthToken.SessionId)
} else {
wg.Add(1)
go func() {
runTranscode(n, orchAddr, httpc, notify)
wg.Done()
Expand Down

0 comments on commit af9de74

Please sign in to comment.