client: cleanup

This commit is contained in:
aler9
2021-12-07 21:50:28 +01:00
parent f7fc48b5ee
commit 92ca5eb1b6

View File

@@ -1798,8 +1798,7 @@ func (c *Client) WritePacketRTCP(trackID int, payload []byte) error {
return c.tracks[trackID].udpRTCPListener.write(payload)
default: // TCP
channel := c.tracks[trackID].tcpChannel
channel++
channel := c.tracks[trackID].tcpChannel + 1
// a mutex is needed here since bufio.Writer is not thread safe.
c.tcpWriteMutex.Lock()