From 2bcbfaf2a0fad560cc7db208b47455b81cba812c Mon Sep 17 00:00:00 2001 From: luwenpeng Date: Thu, 17 Sep 2020 11:27:15 +0800 Subject: [PATCH] =?UTF-8?q?TSG-3301=20=E4=BF=AE=E5=A4=8D=20TFE=20=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=20[maat]=20deferred=5Fload=5Fon=20=E9=80=89=E9=A1=B9=E4=B8=8D?= =?UTF-8?q?=E7=94=9F=E6=95=88=E7=9A=84=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/tfe_resource.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/src/tfe_resource.cpp b/common/src/tfe_resource.cpp index 4b84d62..4fc8265 100644 --- a/common/src/tfe_resource.cpp +++ b/common/src/tfe_resource.cpp @@ -128,7 +128,10 @@ static Maat_feather_t create_maat_feather(const char *instance_name, const char } } - Maat_set_feather_opt(target, MAAT_OPT_DEFERRED_LOAD, &deferred_load_on, sizeof(deferred_load_on)); + if (deferred_load_on) + { + Maat_set_feather_opt(target, MAAT_OPT_DEFERRED_LOAD, &deferred_load_on, sizeof(deferred_load_on)); + } Maat_set_feather_opt(target, MAAT_OPT_EFFECT_INVERVAL_MS, &effect_interval, sizeof(effect_interval)); Maat_set_feather_opt(target, MAAT_OPT_SCAN_DETAIL, &scan_detail, sizeof(scan_detail)); if (strlen(accept_path) > 0)