fix: sink连接断开后仍然推流问题;

This commit is contained in:
ydajiang
2025-05-05 11:15:54 +08:00
parent c9881b9549
commit 866dac20e1

View File

@@ -206,6 +206,8 @@ func (s *BaseSink) doAsyncWrite() {
duration := time.Now().UnixMilli() - l
if err != nil {
log.Sugar.Errorf(err.Error())
<-s.cancelCtx.Done()
return
}
data.Release()