Przeglądaj źródła

fix: increase timeout for itchat

lanvent 3 lat temu
rodzic
commit
3f78e43bbf
1 zmienionych plików z 2 dodań i 0 usunięć
  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: