Skip to content

Commit

Permalink
fix regression that caused a source to be closed after 10secs when so…
Browse files Browse the repository at this point in the history
…urceOnDemand is yes (#949)
  • Loading branch information
aler9 committed May 28, 2022
1 parent 6de8277 commit c5afa69
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 @@ -427,6 +427,8 @@ func (pa *path) run() {
pa.onDemandStaticSourceReadyTimer.Stop()
pa.onDemandStaticSourceReadyTimer = newEmptyTimer()

pa.onDemandStaticSourceScheduleClose()

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

pa.onDemandStaticSourceScheduleClose()
}

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

0 comments on commit c5afa69

Please sign in to comment.