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: