mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2026-10-05 22:04:28 +01:00
Fix occasional headless issue on Linux when set to "false" (#1199)
* Fix occasional headless issue on Linux when set to "false" - Add a variable containing the current platform - Check if the platform is "nt" (Windows) before closing the driver * Update CHANGELOG.md --------- Co-authored-by: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com>
This commit is contained in:
co-authored by
ilike2burnthing
parent
5a2c61601e
commit
6c1d78cb84
@@ -2,6 +2,7 @@ import asyncio
|
||||
from collections.abc import Mapping
|
||||
from collections.abc import Sequence
|
||||
from functools import wraps
|
||||
import os
|
||||
import logging
|
||||
import threading
|
||||
import time
|
||||
@@ -187,5 +188,6 @@ def test():
|
||||
|
||||
time.sleep(10)
|
||||
|
||||
driver.close()
|
||||
if os.name == "nt":
|
||||
driver.close()
|
||||
driver.quit()
|
||||
|
||||
Reference in New Issue
Block a user