Skip to content

Commit

Permalink
syncFlag bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
GamerNoTitle committed Feb 5, 2023
1 parent 2aab887 commit 45175aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mirror_server_reforged/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ def LoadConfig():

@new_thread('MSR-Sync')
def ServerSync(InterFace):
global syncFlag
syncFlag = True
start_time = datetime.datetime.now()
ignore = shutil.ignore_patterns('session.lock')
if MCDR:
Expand All @@ -129,6 +131,7 @@ def ServerSync(InterFace):
end_time = datetime.datetime.now()
InterFace.execute(
f'say §b[MirrorServerReforged] §6同步完成!用时{end_time-start_time}')
syncFlag = False


def Sync():
Expand Down

0 comments on commit 45175aa

Please sign in to comment.