Skip to content

Commit

Permalink
Merge pull request #14 from lx0758/master
Browse files Browse the repository at this point in the history
Fixed login prone to timeout
  • Loading branch information
why2lyj authored Feb 9, 2023
2 parents ff4ad96 + 68f1b96 commit 7ae1cde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions itchat/components/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def login(self, enableCmdQR=False, picDir=None, qrCallback=None,
if isLoggedIn is not None:
logger.info('Please press confirm on your phone.')
isLoggedIn = None
time.sleep(0.5)
elif status != '408':
break
if isLoggedIn:
Expand Down

0 comments on commit 7ae1cde

Please sign in to comment.