Skip to content

Commit

Permalink
add defer to guard against unexpected panics
Browse files Browse the repository at this point in the history
  • Loading branch information
Mistobaan committed Aug 7, 2013
1 parent 6fcb929 commit e5530c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,8 @@ func (s *Server) readConf() error {
func (s *Server) Stop() {
s.send(&stopValue)
s.mutex.Lock()
defer s.mutex.Unlock()
s.log.close()
s.mutex.Unlock()
}

// Checks if the server is currently running.
Expand Down

0 comments on commit e5530c4

Please sign in to comment.