Disallow folly::Singletons before main()
[folly.git] / folly / Singleton-inl.h
index 4a6c071ba4c2d794c4f5bd4a6265eb021b357d19..a0c8cd93094590e2e0752f0569c9c09a2bf74e55 100644 (file)
@@ -225,9 +225,6 @@ void SingletonHolder<T>::createInstance() {
 
   auto state = vault_.state_.rlock();
   if (state->state == SingletonVault::SingletonVaultState::Quiescing) {
-    if (vault_.type_ != SingletonVault::Type::Relaxed) {
-      LOG(FATAL) << "Requesting singleton after vault was destroyed.";
-    }
     return;
   }