fix: subscriber wait track timeout

This commit is contained in:
langhuihui
2024-02-11 10:29:11 +08:00
parent 2891ee8392
commit f320e61803
4 changed files with 4 additions and 5 deletions

View File

@@ -524,10 +524,9 @@ func (s *Stream) run() {
}
if s.State == STATE_WAITTRACK {
s.action(ACTION_TRACKAVAILABLE)
} else {
s.Subscribers.AbortWait()
s.timeout.Reset(time.Second * 5)
}
s.Subscribers.AbortWait()
s.timeout.Reset(time.Second * 5)
} else {
s.Debug("timeout", timeOutInfo)
s.action(ACTION_TIMEOUT)