From 0ae015e2663c080d5303a8f88a502bc8238068f2 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Tue, 7 Mar 2023 07:36:45 -0500 Subject: [PATCH] WebDriver: Do not ignore the result of closing a session --- Userland/Services/WebDriver/Session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Services/WebDriver/Session.cpp b/Userland/Services/WebDriver/Session.cpp index 408e858f8be..ba89a6b0f97 100644 --- a/Userland/Services/WebDriver/Session.cpp +++ b/Userland/Services/WebDriver/Session.cpp @@ -123,7 +123,7 @@ Web::WebDriver::Response Session::close_window() // 4. If there are no more open top-level browsing contexts, then close the session. if (m_windows.is_empty()) - stop(); + TRY(stop()); // 5. Return the result of running the remote end steps for the Get Window Handles command. return get_window_handles();