Fix receive SRTP with empty sessions
This commit is contained in:
@@ -43,6 +43,10 @@ func (s *Server) Serve(conn net.PacketConn) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if s.sessions == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
// Multiplexing RTP Data and Control Packets on a Single Port
|
// Multiplexing RTP Data and Control Packets on a Single Port
|
||||||
// https://datatracker.ietf.org/doc/html/rfc5761
|
// https://datatracker.ietf.org/doc/html/rfc5761
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user