mirror of
https://github.com/bluenviron/mediamtx
synced 2025-02-10 16:37:54 +00:00
fix bug that caused on-demand commands to be closed after 10secs (#1000)
This commit is contained in:
parent
19e38930bd
commit
fb5aa7bbf2
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user