Sfoglia il codice sorgente

fix: restore the original sleep time in itchat

lanvent 3 anni fa
parent
commit
b3cabd9621
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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: