mirror of
https://github.com/trycua/computer.git
synced 2026-01-03 20:10:04 -06:00
Modified watchdog to lazy load
This commit is contained in:
@@ -11,7 +11,6 @@ import threading
|
||||
from typing import List, Optional
|
||||
|
||||
from .server import Server
|
||||
from .watchdog import Watchdog
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -99,6 +98,7 @@ def main() -> None:
|
||||
}
|
||||
|
||||
# Create watchdog with restart settings
|
||||
from .watchdog import Watchdog
|
||||
watchdog = Watchdog(
|
||||
cli_args=cli_args,
|
||||
ping_interval=args.watchdog_interval
|
||||
|
||||
Reference in New Issue
Block a user