mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-19 21:59:59 -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
|
||||
parent := channel.parent
|
||||
parent.children[channel.Id] = nil, false
|
||||
server.Channels[channel.Id] = nil, false
|
||||
chanremove := &mumbleproto.ChannelRemove{
|
||||
ChannelId: proto.Uint32(uint32(channel.Id)),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue