diff --git a/apps/em/cd.py b/apps/em/cd.py index f6b97ca4..70a4ec77 100644 --- a/apps/em/cd.py +++ b/apps/em/cd.py @@ -64,9 +64,10 @@ def get_tyy_data(*args): cd_thread_key = f"cd_thread_{host}_{port}" cd_thread_val = cache.get(cd_thread_key, default=None) if cd_thread_val is None: - cache.set(cd_thread_key, "get") + cache.set(cd_thread_key, "start") cd_thread = MyThread(target=get_tyy_data_t, args=(host, port), daemon=True) cd_thread.start() + cache.set(cd_thread_key, "get") num = 0 while True: num += 1