mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 11:09:25 +08:00
fix: circular reference of AzurLaneConfig
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user