server: fix error message

This commit is contained in:
aler9
2021-06-19 19:16:56 +02:00
parent c122fb4ec3
commit 47637e3ea2

View File

@@ -205,7 +205,7 @@ func (s *Server) Start(address string) error {
} }
if rtcpPort != (rtpPort + 1) { if rtcpPort != (rtpPort + 1) {
return fmt.Errorf("RTCP and RTP ports must be consecutive") return fmt.Errorf("RTP and RTCP ports must be consecutive")
} }
s.udpRTPListener, err = newServerUDPListener(s, false, s.UDPRTPAddress, StreamTypeRTP) s.udpRTPListener, err = newServerUDPListener(s, false, s.UDPRTPAddress, StreamTypeRTP)
@@ -250,7 +250,7 @@ func (s *Server) Start(address string) error {
if s.udpRTCPListener != nil { if s.udpRTCPListener != nil {
s.udpRTCPListener.close() s.udpRTCPListener.close()
} }
return fmt.Errorf("RTCP and RTP ports must be consecutive") return fmt.Errorf("RTP and RTCP ports must be consecutive")
} }
var err error var err error