fix: 关闭推流失败的source时, 造成相同id的source被错误关闭问题;

This commit is contained in:
ydajiang
2025-08-06 14:05:50 +08:00
parent 791f75c54c
commit 7806098ad6
2 changed files with 13 additions and 4 deletions

View File

@@ -32,6 +32,7 @@ func PreparePublishSource(source Source, hook bool) (*http.Response, utils.HookS
log.Sugar.Infof("%s准备推流 source:%s 拉流地址:\r\n%s", source.GetType().String(), source.GetID(), indent)
source.SetState(SessionStateTransferring)
return response, utils.HookStateOK
}