EventBaseLocal cleanup
[folly.git] / folly / io / async / EventBase.cpp
index 8d6c03f211d0c2ddad2a95def05e1152b99ac6ff..d0d58def06e20e4d5411155b9bff918680612c4d 100644 (file)
@@ -183,12 +183,10 @@ EventBase::~EventBase() {
     event_base_free(evb_);
   }
 
-  {
-    std::lock_guard<std::mutex> lock(localStorageMutex_);
-    for (auto storage : localStorageToDtor_) {
-      storage->onEventBaseDestruction(*this);
-    }
+  for (auto storage : localStorageToDtor_) {
+    storage->onEventBaseDestruction(*this);
   }
+
   VLOG(5) << "EventBase(): Destroyed.";
 }