Server Close Comment
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Sarah Jamie Lewis 2021-05-05 12:50:19 -07:00
parent c234b11cc2
commit c25e682fa4
1 changed files with 1 additions and 0 deletions

View File

@ -151,6 +151,7 @@ func (s *Server) ConfigureAutostart(autostart bool) {
s.config.Save(s.config.ConfigDir, s.config.FilePath)
}
// Close shuts down the cwtch server in a safe way.
func (s *Server) Close() {
log.Infof("Shutting down server")
s.lock.Lock()