🐛 fix: Channel的接收者过滤器的问题,优化重启部分

This commit is contained in:
2024-07-31 02:35:05 +08:00
parent ca34f9c2a1
commit 6ba983fae3
3 changed files with 15 additions and 17 deletions

View File

@ -53,7 +53,7 @@ class ProcessManager:
while not should_exit:
# 0退出 1重启
data = self.chan.receive(name)
print("Received data: ", data)
print("Received data: ", data, name)
if data == 1:
logger.info("Restarting LiteyukiBot...")
process.terminate()