From 4dcab181655d215ad0105f8adfe76dd6fd8bd201 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 27 Feb 2018 00:49:48 +0100 Subject: [PATCH] Make execute_javascript_async() wait for any pending reload(). --- cef_capture.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cef_capture.cpp b/cef_capture.cpp index c52e3a4..9dc454b 100644 --- a/cef_capture.cpp +++ b/cef_capture.cpp @@ -60,6 +60,7 @@ void CEFCapture::set_url(const string &url) void CEFCapture::reload() { post_to_cef_ui_thread([this] { + loaded = false; browser->Reload(); }); } -- 2.39.2