Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Commit

Permalink
🐞 fix:错误的命名导致无法正确进行单例检测
Browse files Browse the repository at this point in the history
  • Loading branch information
HeartfeltJoy committed Sep 29, 2024
1 parent 53300b4 commit 460b114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
# 检查是否已经有 NCD 在运行了, 如果有则取消运行
for proc in psutil.process_iter():
logger.debug(f"检测进程名称: {proc.name()}")
if proc.name() == "NapCatQQ-Desktop.exe":
if proc.name() == "NapCat-Desktop.exe":
logger.warning("检测到已有 NapCatQQ-Desktop 进程运行, 请先关闭后再运行")
sys.exit()

Expand Down

0 comments on commit 460b114

Please sign in to comment.