Only cleanup if we are the main process

This commit is contained in:
Paul Betts 2015-10-21 12:29:21 -07:00
parent a160891a27
commit 658a9872fb

View file

@ -149,8 +149,11 @@ void Browser::NotifyAndShutdown() {
}
if (process_notify_callback_set_) {
process_singleton_->Cleanup();
process_notify_callback_.Reset();
if (process_notify_result_ == ProcessSingleton::PROCESS_NONE) {
process_singleton_->Cleanup();
}
}
Shutdown();