mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-09-27 03:25:56 +08:00
fix: writeTrailerTask never dispose
This commit is contained in:
@@ -128,8 +128,10 @@ func (p *PullJob) Publish() (err error) {
|
||||
p.Publisher.Type = PublishTypePull
|
||||
if err == nil && p.conf.MaxRetry != 0 {
|
||||
p.Publisher.OnDispose(func() {
|
||||
if p.Publisher.StopReasonIs(pkg.ErrPublishDelayCloseTimeout, pkg.ErrStopFromAPI) {
|
||||
if p.Publisher.StopReasonIs(pkg.ErrPublishDelayCloseTimeout, task.ErrStopByUser) {
|
||||
p.Stop(p.Publisher.StopReason())
|
||||
} else {
|
||||
p.puller.Stop(p.Publisher.StopReason())
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user