Fix receive SRTP with empty sessions

This commit is contained in:
Alexey Khit
2023-07-23 17:08:03 +03:00
parent 7005cd08f2
commit 6e9574a1bd
+4
View File
@@ -43,6 +43,10 @@ func (s *Server) Serve(conn net.PacketConn) error {
return err
}
if s.sessions == nil {
continue
}
// Multiplexing RTP Data and Control Packets on a Single Port
// https://datatracker.ietf.org/doc/html/rfc5761