1
0
Fork 0
forked from External/grumble

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:
Benjamin Jemlich 2011-01-02 11:19:27 +08:00 committed by Mikkel Krautz
parent f5bb702a9c
commit b9d4222543

View file

@ -294,16 +294,6 @@ func (server *Server) handleAuthenticate(client *Client, msg *Message) {
} }
server.updateCodecVersions() 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.sendChannelList()
client.state = StateClientAuthenticated client.state = StateClientAuthenticated