Skip to content

Commit

Permalink
fix bug that caused on-demand commands to be closed after 10secs (#1000)
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 committed Jun 24, 2022
1 parent 19e3893 commit fb5aa7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/core/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,8 @@ func (pa *path) handlePublisherRecord(req pathPublisherRecordReq) {
pa.onDemandPublisherReadyTimer.Stop()
pa.onDemandPublisherReadyTimer = newEmptyTimer()

pa.onDemandPublisherScheduleClose()

for _, req := range pa.describeRequestsOnHold {
req.res <- pathDescribeRes{
stream: pa.stream,
Expand All @@ -855,8 +857,6 @@ func (pa *path) handlePublisherRecord(req pathPublisherRecordReq) {
pa.handleReaderSetupPlayPost(req)
}
pa.setupPlayRequestsOnHold = nil

pa.onDemandPublisherScheduleClose()
}

req.res <- pathPublisherRecordRes{stream: pa.stream}
Expand Down

0 comments on commit fb5aa7b

Please sign in to comment.