no need to lock a bool

pull/1519/head
Cory LaNou 2015-02-05 16:20:02 -07:00
parent 1604d7f604
commit 09d4a4e2d7
1 changed files with 0 additions and 2 deletions

View File

@ -124,8 +124,6 @@ func NewServer() *Server {
// SetAuthenticationEnabled turns on or off server authentication
func (s *Server) SetAuthenticationEnabled(enabled bool) {
s.mu.Lock()
defer s.mu.Unlock()
s.authenticationEnabled = enabled
}