From 6cb3be7395662c84b4a1aff5ea1e5e6235e269c8 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Wed, 5 Aug 2015 13:24:01 -0400 Subject: [PATCH] Windows: Fix crash on startup with multi-threaded-message-loop (issue #1678) --- libcef/common/main_delegate.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libcef/common/main_delegate.cc b/libcef/common/main_delegate.cc index b3d29b5d9..0da8ec880 100644 --- a/libcef/common/main_delegate.cc +++ b/libcef/common/main_delegate.cc @@ -562,6 +562,7 @@ int CefMainDelegate::RunProcess( NOTREACHED() << "failed to start UI thread"; return 1; } + thread->WaitUntilThreadStarted(); ui_thread_.swap(thread); }