IceFireDB/redhub

possible to provide a server.Close() function?

Opened this issue · 0 comments

a function similar to this from tidwall/redcon. thx

func (s *Server) Close() error {
	s.mu.Lock()
	defer s.mu.Unlock()
	if s.ln == nil {
		return errors.New("not serving")
	}
	s.done = true
	return s.ln.Close()
}