From 0563c0c1d3ea4ecb79da4f22b4e4f4f697b113fc Mon Sep 17 00:00:00 2001 From: hlohaus <983577+hlohaus@users.noreply.github.com> Date: Sun, 8 Feb 2026 02:49:04 +0100 Subject: [PATCH] fix: await stop_browser call in GoogleSearch to ensure proper asynchronous execution --- g4f/Provider/search/GoogleSearch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g4f/Provider/search/GoogleSearch.py b/g4f/Provider/search/GoogleSearch.py index 3dc506f6..4eae6666 100644 --- a/g4f/Provider/search/GoogleSearch.py +++ b/g4f/Provider/search/GoogleSearch.py @@ -50,4 +50,4 @@ class GoogleSearch(AsyncGeneratorProvider, AuthFileMixin): await asyncio.sleep(1000) finally: if stop_browser is not None: - stop_browser() \ No newline at end of file + await stop_browser() \ No newline at end of file