Skip to content

Commit cee254a

Browse files
committed
perf: 优化打印&日志输出,增加RCON连接检测
1 parent af1632e commit cee254a

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

Diff for: img.png

3.74 KB
Loading

Diff for: task_scheduler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def start_program(self):
9595
break
9696
time.sleep(1) # 每次尝试后,暂停1秒
9797

98-
if time.time() - start_time >= 15:
98+
else:
9999
INFO.logger.error("[ RCON ] 无法在15秒内建立RCON连接")
100100
print("[ RCON ] 无法在15秒内建立RCON连接")
101101
exit(0)

0 commit comments

Comments
 (0)