From b9494d666e6060200f7c248b78bd2d5574942cf8 Mon Sep 17 00:00:00 2001 From: tbs60 Date: Thu, 27 Jul 2023 14:59:56 +0800 Subject: [PATCH] =?UTF-8?q?bk-shader-tool=E7=9A=84=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=A4=84=E7=90=86=E5=AE=8C=E5=96=84,issue:?= =?UTF-8?q?=20#97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/booster/bk_dist/shadertool/pkg/shadertool.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/backend/booster/bk_dist/shadertool/pkg/shadertool.go b/src/backend/booster/bk_dist/shadertool/pkg/shadertool.go index 9f1319e2..8588f3f2 100644 --- a/src/backend/booster/bk_dist/shadertool/pkg/shadertool.go +++ b/src/backend/booster/bk_dist/shadertool/pkg/shadertool.go @@ -262,8 +262,10 @@ func (h *ShaderTool) executeShaders(ctx context.Context) error { // blog.Debugf("ShaderTool: main loop tick") err := h.tryExecuteActions(ctx) if err != nil && err != ErrorNoActionsToRun { - blog.Errorf("ShaderTool: failed to execute shader actions with error:%v", err) - return err + blog.Errorf("ShaderTool: failed to execute shader actions with error:%v,exit now", err) + h.ReleaseResource() + h.commitSuicide() + // return err } } }