Преглед изворни кода

fix: increase timeout for itchat

lanvent пре 3 година
родитељ
комит
3f78e43bbf
1 измењених фајлова са 2 додато и 0 уклоњено
  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: