Fix mutex

This commit is contained in:
Neil Alexander 2020-08-11 16:06:48 +01:00
parent d7b40564a9
commit 13426dbccd
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -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
}