소스 검색

fix: restore the original sleep time in itchat

lanvent 3 년 전
부모
커밋
b3cabd9621
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      lib/itchat/components/login.py

+ 1 - 0
lib/itchat/components/login.py

@@ -68,6 +68,7 @@ def login(self, enableCmdQR=False, picDir=None, qrCallback=None,
                     logger.info('Please press confirm on your phone.')
                     isLoggedIn = None
                     time.sleep(7)
+                time.sleep(0.5)
             elif status != '408':
                 break
         if isLoggedIn: