Skip to content

Commit

Permalink
Fix first load error
Browse files Browse the repository at this point in the history
  • Loading branch information
Mooling0602 authored Dec 15, 2024
1 parent d7ea587 commit 7a3e930
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions matrix_sync/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand All @@ -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.
Expand Down Expand Up @@ -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"))
server.logger.info(tr("on_unload"))

0 comments on commit 7a3e930

Please sign in to comment.