update: fixed high CPU usage during login status detection

This commit is contained in:
2025-07-31 11:53:10 +08:00
parent d0db2089a3
commit 4173ff9b5a

View File

@@ -193,9 +193,12 @@ def main():
try:
driver.find_element(By.CSS_SELECTOR, "#io-ox-core")
loader = driver.find_element(By.CSS_SELECTOR, "#background-loader")
if not loader.is_displayed():
print(f'[信息] 已登录')
break
else:
raise Exception()
except:
time.sleep(args.interval)