We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d592266 commit 01d5bd5Copy full SHA for 01d5bd5
src/browserbase/_base_client.py
@@ -767,6 +767,9 @@ def __init__(self, **kwargs: Any) -> None:
767
768
class SyncHttpxClientWrapper(DefaultHttpxClient):
769
def __del__(self) -> None:
770
+ if self.is_closed:
771
+ return
772
+
773
try:
774
self.close()
775
except Exception:
@@ -1334,6 +1337,9 @@ def __init__(self, **kwargs: Any) -> None:
1334
1337
1335
1338
class AsyncHttpxClientWrapper(DefaultAsyncHttpxClient):
1336
1339
1340
1341
1342
1343
1344
# TODO(someday): support non asyncio runtimes here
1345
asyncio.get_running_loop().create_task(self.aclose())
0 commit comments