Skip to content

Commit

Permalink
Merge pull request #744 from livepeer/it/sessacessfix
Browse files Browse the repository at this point in the history
use local var to access session
  • Loading branch information
darkdarkdragon authored Feb 14, 2019
2 parents 61c1145 + 3512015 commit 9c68a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/broadcast.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func processSegment(cxn *rtmpConnection, seg *stream.HLSSegment) {
}
cond.L.Unlock()

ticketParams := cxn.sess.OrchestratorInfo.GetTicketParams()
ticketParams := sess.OrchestratorInfo.GetTicketParams()
if !pm.VerifySig(ethcommon.BytesToAddress(ticketParams.Recipient), crypto.Keccak256(segHashes...), res.Sig) {
glog.Error("Sig check failed for segment ", seg.SeqNo)
return
Expand Down

0 comments on commit 9c68a33

Please sign in to comment.