Reverted Session.clientBW2 to uint8.

This commit is contained in:
scruzin 2019-01-14 10:31:42 +10:30
parent e778488aba
commit 3ab2c1f69a
2 changed files with 2 additions and 2 deletions

View File

@ -260,7 +260,7 @@ func handlePacket(s *Session, pkt *packet) error {
case packetTypeClientBW:
s.clientBW = amf.DecodeInt32(pkt.body[:4])
if pkt.bodySize > 4 {
s.clientBW2 = uint32(pkt.body[4])
s.clientBW2 = pkt.body[4]
} else {
s.clientBW2 = 0xff
}

View File

@ -51,7 +51,7 @@ type Session struct {
streamID int32
serverBW uint32
clientBW uint32
clientBW2 uint32
clientBW2 uint8
isPlaying bool
numInvokes int32
methodCalls []method