Mac: Fix execution of performClose: signal (issue #1203)

git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1750@1631 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2014-03-06 13:42:45 +00:00
parent 2e7e342f87
commit 8bf0d143b8
1 changed files with 4 additions and 3 deletions

View File

@ -389,9 +389,10 @@ bool CefBrowserHostImpl::PlatformCreateWindow() {
void CefBrowserHostImpl::PlatformCloseWindow() {
if (window_info_.view != nil) {
[[window_info_.view window] performSelector:@selector(performClose:)
withObject:nil
afterDelay:0];
[[window_info_.view window]
performSelectorOnMainThread:@selector(performClose:)
withObject:nil
waitUntilDone:NO];
}
}