From f9a53b9e36e4d4708a985760f161381fa54a0b21 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Mon, 11 Sep 2023 18:11:53 +0800 Subject: [PATCH] fix --- server/websocket/internal/logic/ws_render_image.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,