From 3f78e43bbf5803e81eae59b62846a2685cf2f0a1 Mon Sep 17 00:00:00 2001 From: lanvent Date: Sat, 25 Mar 2023 13:29:09 +0800 Subject: [PATCH] fix: increase timeout for itchat --- channel/wechat/wechat_channel.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/channel/wechat/wechat_channel.py b/channel/wechat/wechat_channel.py index dfa122c..41e63c4 100644 --- a/channel/wechat/wechat_channel.py +++ b/channel/wechat/wechat_channel.py @@ -51,6 +51,8 @@ class WechatChannel(Channel): pass def startup(self): + + itchat.instance.receivingRetryCount = 600 # 修改断线超时时间 # login by scan QRCode hotReload = conf().get('hot_reload', False) try: