feat: pion webrtc update to v4

This commit is contained in:
langhuihui
2025-01-02 19:57:16 +08:00
parent cbe9f2d645
commit 55d54734e7
15 changed files with 81 additions and 36 deletions

View File

@@ -378,13 +378,16 @@ func (task *Task) SetDescriptions(value Description) {
}
func (task *Task) dispose() {
taskType, ownerType := task.handler.GetTaskType(), task.GetOwnerType()
if task.state < TASK_STATE_STARTED {
if task.Logger != nil {
task.Debug("task dispose canceled", "taskId", task.ID, "taskType", taskType, "ownerType", ownerType, "state", task.state)
}
return
}
reason := task.StopReason()
task.state = TASK_STATE_DISPOSING
if task.Logger != nil {
taskType, ownerType := task.handler.GetTaskType(), task.GetOwnerType()
if taskType != TASK_TYPE_CALL {
yargs := []any{"reason", reason, "taskId", task.ID, "taskType", taskType, "ownerType", ownerType}
task.Debug("task dispose", yargs...)