add defer to guard against unexpected panics

pull/820/head
Fabrizio (Misto) Milo 2013-08-06 21:11:09 -07:00
parent 6fcb929318
commit e5530c40fe
1 changed files with 1 additions and 1 deletions

View File

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