mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-22 06:13:10 -06:00
Fix mutex
This commit is contained in:
parent
d7b40564a9
commit
13426dbccd
|
|
@ -77,7 +77,7 @@ func (s *ServerACLs) OnServerACLUpdate(state *gomatrixserverlib.Event) {
|
|||
}
|
||||
logrus.Infof("Update server ACLs for %q", state.RoomID())
|
||||
s.aclsMutex.Lock()
|
||||
defer s.aclsMutex.RUnlock()
|
||||
defer s.aclsMutex.Unlock()
|
||||
s.acls[state.RoomID()] = acls
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue