mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-19 21:59:59 -08:00
Don't send two CodecVersion messages
The client is already in the server's list of client and will get the broadcast message from updateCodecVersions, so we don't need to send the message twice.
This commit is contained in:
parent
f5bb702a9c
commit
b9d4222543
1 changed files with 0 additions and 10 deletions
10
server.go
10
server.go
|
|
@ -294,16 +294,6 @@ func (server *Server) handleAuthenticate(client *Client, msg *Message) {
|
|||
}
|
||||
server.updateCodecVersions()
|
||||
|
||||
err = client.sendProtoMessage(MessageCodecVersion, &mumbleproto.CodecVersion{
|
||||
Alpha: proto.Int32(server.AlphaCodec),
|
||||
Beta: proto.Int32(server.BetaCodec),
|
||||
PreferAlpha: proto.Bool(server.PreferAlphaCodec),
|
||||
})
|
||||
if err != nil {
|
||||
client.Panic(err.String())
|
||||
return
|
||||
}
|
||||
|
||||
client.sendChannelList()
|
||||
client.state = StateClientAuthenticated
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue