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 5eeb52c8fc24a9364af91f52ba3ed094ee5ac21f..4dd08098240ebf4f85066736dc1120041abcec9c 100644 |
--- a/mandoline/services/core_services/core_services_application_delegate.cc |
+++ b/mandoline/services/core_services/core_services_application_delegate.cc |
@@ -72,6 +72,8 @@ class ApplicationThread : public base::Thread { |
} |
void RequestQuit() { |
+ if (!IsRunning()) |
+ return; |
task_runner()->PostTask( |
FROM_HERE, |
base::Bind(&ApplicationThread::ShutdownCleanly, |