diff --git a/matrix_sync/entry.py b/matrix_sync/entry.py index bb90d40..d1f6a84 100644 --- a/matrix_sync/entry.py +++ b/matrix_sync/entry.py @@ -2,7 +2,7 @@ from typing import Optional from .utils import tr -from .client import init +from .client import init, clientStatus from .config import load_config, check_config from .utils import psi, globals from .utils.commands import * @@ -22,7 +22,7 @@ def on_load(server: PluginServerInterface, prev_module): else: init() plugin_command(server) - if server.is_server_startup(): + if server.is_server_startup() and clientStatus: start_sync() # Automatically run sync processes. @@ -71,4 +71,4 @@ def on_unload(server: PluginServerInterface): psi.logger.info(exit_sync()) from .config import lock_is_None if not lock_is_None: - server.logger.info(tr("on_unload")) \ No newline at end of file + server.logger.info(tr("on_unload"))