This commit is contained in:
laodaming 2023-09-11 18:11:53 +08:00
parent e9a3b7b49c
commit f9a53b9e36

View File

@ -563,6 +563,8 @@ func (w *wsConnectItem) operationRenderTask() {
if !ok {
continue
}
//删除任务
delete(w.extendRenderProperty.renderImageTask, data.taskId)
//存在任务,则发送渲染结果给前端
UnityRenderTakesTime := "cache"
uploadUnityRenderImageTakesTime := "cache"
@ -583,8 +585,6 @@ func (w *wsConnectItem) operationRenderTask() {
UploadUnityRenderImageTakesTime: uploadUnityRenderImageTakesTime,
},
})
//删除任务
delete(w.extendRenderProperty.renderImageTask, data.taskId)
case 1: //新增任务
w.extendRenderProperty.renderImageTask[data.taskId] = &renderTask{
renderId: data.renderId,