Skip to content
This repository was archived by the owner on Dec 20, 2021. It is now read-only.

Commit d81660c

Browse files
authored
Fix WSS: login2fa() does not trigger wss connect
While login() triggers self.connect() if login is successful, login2fa() does not, causing the client to just idle. Fix by adding self.connect() trigger to login2fa().
1 parent ed30f56 commit d81660c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vrcpy/wss.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,8 @@ async def login(self, username, password):
356356

357357
async def login2fa(self, username, password, code=None, verify=False):
358358
await super().login2fa(username, password, code, verify)
359+
if self.loggedIn:
360+
self.connect()
359361

360362
async def verify2fa(self, code):
361363
await super().verify2fa(code)

0 commit comments

Comments
 (0)