forked from External/grumble
grumble: port fix for pre-1.2.4 clients receiving Opus warnings unintentionally.
This commit is contained in:
parent
eb64671d5a
commit
51eee0abd0
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue