mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-21 22:03: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())
|
logrus.Infof("Update server ACLs for %q", state.RoomID())
|
||||||
s.aclsMutex.Lock()
|
s.aclsMutex.Lock()
|
||||||
defer s.aclsMutex.RUnlock()
|
defer s.aclsMutex.Unlock()
|
||||||
s.acls[state.RoomID()] = acls
|
s.acls[state.RoomID()] = acls
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue