diff --git a/state.go b/state.go index b170ce0..e3c8908 100644 --- a/state.go +++ b/state.go @@ -325,7 +325,7 @@ func (s *State) Channel(channelID string) (*Channel, error) { return nil, ErrNilState } - s.Rlock() + s.RLock() defer s.RUnlock() if c, ok := s.channelMap[channelID]; ok {