diff --git a/server/websocket/internal/logic/ws_render_image.go b/server/websocket/internal/logic/ws_render_image.go index 3df8c0f0..f532fa4d 100644 --- a/server/websocket/internal/logic/ws_render_image.go +++ b/server/websocket/internal/logic/ws_render_image.go @@ -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,