Bug 792372 - Use a check to solve a race notifying the browser process about a Flash crash while the channel is being closed [@ mozilla::ipc::AsyncChannel::CloseWithError()], r=gfritzsche

This commit is contained in:
Benjamin Smedberg 2012-10-04 12:58:42 -04:00
parent 31f1f31591
commit ddd6c693ea

View File

@ -1455,8 +1455,10 @@ PluginModuleParent::InitializeInjector()
void
PluginModuleParent::OnCrash(DWORD processID)
{
GetIPCChannel()->CloseWithError();
KillProcess(OtherProcess(), 1, false);
if (!mShutdown) {
GetIPCChannel()->CloseWithError();
KillProcess(OtherProcess(), 1, false);
}
}
#endif // MOZ_CRASHREPORTER_INJECTOR