diff --git a/ReactCommon/react/renderer/componentregistry/ComponentDescriptorRegistry.cpp b/ReactCommon/react/renderer/componentregistry/ComponentDescriptorRegistry.cpp index d29bbfc672..bfbc34fc51 100644 --- a/ReactCommon/react/renderer/componentregistry/ComponentDescriptorRegistry.cpp +++ b/ReactCommon/react/renderer/componentregistry/ComponentDescriptorRegistry.cpp @@ -60,9 +60,9 @@ ComponentDescriptor const &ComponentDescriptorRegistry::at( auto it = _registryByName.find(unifiedComponentName); if (it == _registryByName.end()) { - mutex_.unlock_shared(); + lock.unlock(); providerRegistry_.request(unifiedComponentName.c_str()); - mutex_.lock_shared(); + lock.lock(); it = _registryByName.find(unifiedComponentName);