Merge pull request #125920 from siyuanfoundation/bug
fix lock bug for componentGlobalsRegistry
This commit is contained in:
@@ -135,8 +135,8 @@ func NewComponentGlobalsRegistry() *componentGlobalsRegistry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r *componentGlobalsRegistry) Reset() {
|
func (r *componentGlobalsRegistry) Reset() {
|
||||||
r.mutex.RLock()
|
r.mutex.Lock()
|
||||||
defer r.mutex.RUnlock()
|
defer r.mutex.Unlock()
|
||||||
r.componentGlobals = make(map[string]*ComponentGlobals)
|
r.componentGlobals = make(map[string]*ComponentGlobals)
|
||||||
r.emulationVersionConfig = nil
|
r.emulationVersionConfig = nil
|
||||||
r.featureGatesConfig = nil
|
r.featureGatesConfig = nil
|
||||||
|
Reference in New Issue
Block a user