From 25ebda9c210edbfef68c23a9495ec3045de49de7 Mon Sep 17 00:00:00 2001 From: liuwei Date: Wed, 7 May 2025 10:15:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5debug=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- robot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/robot.py b/robot.py index 2730556..ee4857a 100644 --- a/robot.py +++ b/robot.py @@ -298,7 +298,7 @@ class Robot(Job): async def _heartbeat_task(self): """wechat_ipad心跳任务""" self.LOG.info("开启wechat_ipad心跳!") - while self.ipad_running: + while True: try: success = await self.ipad_bot.heartbeat() if success: @@ -312,7 +312,7 @@ class Robot(Job): async def _heartbeat_task_long(self): """wechat_ipad心跳任务""" self.LOG.info("开启wechat_ipad长连接心跳!") - while self.ipad_running: + while True: try: success = await self.ipad_bot.heartbeat_long() if success: