Fix app.makeSingleInstance hanging on posix systems

Wait for the IO thread to be a thing before attempting to listen on the socket

Fixes #9880
This commit is contained in:
Samuel Attard 2017-09-14 22:33:13 +10:00 committed by Cheng Zhao
parent fb6a4febb0
commit 28900a9b63
4 changed files with 35 additions and 6 deletions

View file

@ -577,6 +577,10 @@ void App::OnFinishLaunching(const base::DictionaryValue& launch_info) {
media::AudioManager::SetGlobalAppName(Browser::Get()->GetName());
#endif
Emit("ready", launch_info);
if (process_singleton_) {
process_singleton_->OnBrowserReady();
}
}
void App::OnAccessibilitySupportChanged() {