1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 08:49:24 +08:00

fix: circular reference of AzurLaneConfig

This commit is contained in:
0O0o0oOoO00
2025-09-13 21:58:42 +08:00
parent 176ea7412b
commit 3a6f1fea09

View File

@@ -3,11 +3,9 @@ import os
import threading
import time
from module.config.full_config import AzurLaneFullConfig
from module.counter import MaxCounter, CounterReachMaxCountException
from module.logger import logger
from module.notify import handle_notify
from module.config.config import AzurLaneConfig
class SchedulerWatcher:
@@ -15,7 +13,7 @@ class SchedulerWatcher:
def __init__(self):
self.alas_obj = None
self.config: AzurLaneConfig = None
self.config = None
self.watcher: threading.Thread = None
self.warning_count = None
self.warning_time = None
@@ -99,7 +97,7 @@ class SchedulerWatcher:
class AzurLaneSchedulerWatcher:
def __init__(self, config):
full_config: AzurLaneFullConfig = config.full_config
full_config = config.full_config
if full_config.Restart_SchedulerWatcher_Enable:
self.watcher: SchedulerWatcher = SchedulerWatcher.get_instance()
if not self.watcher.is_alive():