The app initializes, calls CefRunMessageLoop(); loads a page then tries to exit when the page is loaded.
The code looks like this:
- Code: Select all
void browser_client::OnBeforeClose(CefRefPtr<CefBrowser> browser)
{
CEF_REQUIRE_UI_THREAD();
std::cout << "browser=" << browser << std::endl;
CefQuitMessageLoop();
mParent->onRequestShutdown();
}
where mParent->onRequestShutdown() calls back into the client which then calls CefShutdown();
Why is onBeforeClose() being called more than once and is this the right shutdown methodology?