Skip to content

Commit 6451941

Browse files
WizardCMRytoEX
authored andcommitted
Wait on shutdown for docks to close on Linux
Temporary solution to allow a CEF upgrade. Ideally we should track open docks & count `OnBeforeClose` calls.
1 parent 8e2b31f commit 6451941

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

panel/browser-panel.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,12 @@ void QCefWidgetInternal::closeBrowser()
181181
}
182182

183183
cefBrowser->GetHost()->CloseBrowser(true);
184+
185+
#if !defined(_WIN32) && !defined(__APPLE__) && CHROME_VERSION_BUILD >= 6533
186+
while (cefBrowser && cefBrowser->IsValid()) {
187+
os_sleep_ms(10);
188+
}
189+
#endif
184190
};
185191

186192
/* So you're probably wondering what's going on here. If you

0 commit comments

Comments
 (0)