Ver Fonte

fix: restore the original sleep time in itchat

lanvent há 3 anos atrás
pai
commit
b3cabd9621
1 ficheiros alterados com 1 adições e 0 exclusões
  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: