1
0
Fork 0
forked from External/grumble

Remove channels from Server's Channels map as well.

This commit is contained in:
Mikkel Krautz 2011-05-17 23:35:56 +02:00
parent 1b21db9221
commit d9ab7d2754

View file

@ -1145,6 +1145,7 @@ func (server *Server) RemoveChannel(channel *Channel) {
// Remove the channel itself // Remove the channel itself
parent := channel.parent parent := channel.parent
parent.children[channel.Id] = nil, false parent.children[channel.Id] = nil, false
server.Channels[channel.Id] = nil, false
chanremove := &mumbleproto.ChannelRemove{ chanremove := &mumbleproto.ChannelRemove{
ChannelId: proto.Uint32(uint32(channel.Id)), ChannelId: proto.Uint32(uint32(channel.Id)),
} }