fix: close browser window after Deltains claim completes
Session still persists via the Chrome profile/saved cookies, so closing the window doesn't force a re-login or OTP next time.
This commit is contained in:
@@ -304,8 +304,9 @@ async def start_deltains_claim_run(sid: str, data: dict, url: str):
|
||||
s["result"] = result
|
||||
s["message"] = "completed"
|
||||
|
||||
# Leave the browser window open on the "My claims" page (persistent session)
|
||||
print("[Deltains Claim] Claim completed - browser left open on My claims page")
|
||||
# Close the browser window after claim (session preserved in profile/cookies)
|
||||
_close_browser(bot)
|
||||
print("[Deltains Claim] Browser closed - session preserved in profile")
|
||||
|
||||
asyncio.create_task(_remove_session_later(sid, 60))
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user