Parcourir la source

fix: increase timeout for itchat

lanvent il y a 3 ans
Parent
commit
3f78e43bbf
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      channel/wechat/wechat_channel.py

+ 2 - 0
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: