Index: mandoline/services/core_services/core_services_application_delegate.cc |
diff --git a/mandoline/services/core_services/core_services_application_delegate.cc b/mandoline/services/core_services/core_services_application_delegate.cc |
index 90e9314d1e6dd5b5ec5900eb51287f6d5d56f97d..e531d42d1c75dcf76cf7e407d6c76f99250bf705 100644 |
--- a/mandoline/services/core_services/core_services_application_delegate.cc |
+++ b/mandoline/services/core_services/core_services_application_delegate.cc |
@@ -71,6 +71,8 @@ class ApplicationThread : public base::Thread { |
} |
void RequestQuit() { |
+ if (!IsRunning()) |
+ return; |
task_runner()->PostTask( |
FROM_HERE, |
base::Bind(&ApplicationThread::ShutdownCleanly, |