grumble: port fix for pre-1.2.4 clients receiving Opus warnings unintentionally.

This commit is contained in:
Mikkel Krautz 2012-12-01 11:24:43 +01:00
parent eb64671d5a
commit 51eee0abd0

View file

@ -735,7 +735,7 @@ func (server *Server) updateCodecVersions(connecting *Client) {
server.BetaCodec = winner
}
} else if server.Opus == enableOpus {
if connecting != nil && !connecting.opus {
if server.Opus && connecting != nil && !connecting.opus {
txtMsg.Session = []uint32{connecting.Session}
connecting.sendMessage(txtMsg)
}