From a48faec09882ad834d6795eaa3555533c0f742e1 Mon Sep 17 00:00:00 2001 From: MSXYZ-GenAI Date: Sun, 3 May 2026 12:28:33 +0300 Subject: [PATCH] fix: guard warning state --- VideoTAADLAA.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/VideoTAADLAA.py b/VideoTAADLAA.py index 7b26c19..64042b5 100644 --- a/VideoTAADLAA.py +++ b/VideoTAADLAA.py @@ -101,7 +101,9 @@ class VideoTAADLAA: self.texture_net_cache = {} self._texture_lock = threading.Lock() + self._seen_warnings = set() + self._warning_lock = threading.Lock() self._load_defaults() @@ -113,11 +115,12 @@ class VideoTAADLAA: setattr(self, name, NODE_DEFAULTS[name]) def _first_time(self, key): - if key in self._seen_warnings: - return False + with self._warning_lock: + if key in self._seen_warnings: + return False - self._seen_warnings.add(key) - return True + self._seen_warnings.add(key) + return True @classmethod def INPUT_TYPES(cls):