fix bug that caused on-demand commands to be closed after 10secs (#1000)

This commit is contained in:
aler9 2022-06-24 18:04:45 +02:00
parent 19e38930bd
commit fb5aa7bbf2

View File

@ -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,
@ -855,8 +857,6 @@ func (pa *path) handlePublisherRecord(req pathPublisherRecordReq) {
pa.handleReaderSetupPlayPost(req)
}
pa.setupPlayRequestsOnHold = nil
pa.onDemandPublisherScheduleClose()
}
req.res <- pathPublisherRecordRes{stream: pa.stream}