Removed unused extras from rtmp.link.

This commit is contained in:
scruzin 2019-01-13 07:11:25 +10:30
parent e0a4c39c8b
commit 40806d4de7
2 changed files with 0 additions and 8 deletions

View File

@ -408,13 +408,6 @@ func sendConnectPacket(s *Session) error {
} }
} }
for i := range s.link.extras.Properties {
enc, err = amf.PropEncode(&s.link.extras.Properties[i], enc)
if err != nil {
return err
}
}
pkt.bodySize = uint32((len(pbuf) - fullHeaderSize) - len(enc)) pkt.bodySize = uint32((len(pbuf) - fullHeaderSize) - len(enc))
return pkt.write(s, true) // response expected return pkt.write(s, true) // response expected

View File

@ -81,7 +81,6 @@ type link struct {
auth string auth string
flashVer string flashVer string
token string token string
extras amf.Object
flags int32 flags int32
swfAge int32 swfAge int32
protocol int32 protocol int32