Skip to content

Commit

Permalink
Fix login time out issue. Ref: zhayujie/chatgpt-on-wechat#8.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmjoy committed Mar 15, 2023
1 parent 4ed6517 commit 475e799
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 @@ -56,6 +56,7 @@ def login(self, enableCmdQR=False, picDir=None, qrCallback=None,
picDir=picDir, qrCallback=qrCallback)
logger.info('Please scan the QR code to log in.')
isLoggedIn = False
time.sleep(15)
while not isLoggedIn:
status = self.check_login()
if hasattr(qrCallback, '__call__'):
Expand Down

0 comments on commit 475e799

Please sign in to comment.