mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-20 06:10:00 -08:00
Remove channels from Server's Channels map as well.
This commit is contained in:
parent
1b21db9221
commit
d9ab7d2754
1 changed files with 1 additions and 0 deletions
|
|
@ -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)),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue