Explorar o código

fix: restore the original sleep time in itchat

lanvent %!s(int64=3) %!d(string=hai) anos
pai
achega
b3cabd9621
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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: