diff --git a/server/server.go b/server/server.go index 2c6ae40..813dfc4 100644 --- a/server/server.go +++ b/server/server.go @@ -132,11 +132,11 @@ func (s *Server) Close() error { return nil } s.disposed = true + udpErr := s.conn.Close() + tcpErr := s.tcpConn.Close() s.store.DisableCleanup() close(s.messageProcessing) - udpErr := s.conn.Close() - tcpErr := s.tcpConn.Close() if udpErr != nil { return udpErr