Browse Source

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

pull/1003/head
aler9 3 years ago
parent
commit
fb5aa7bbf2
  1. 4
      internal/core/path.go

4
internal/core/path.go

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

Loading…
Cancel
Save