1
0
Fork 0
forked from External/ergo
This commit is contained in:
Shivaram Lingamneni 2020-06-30 19:24:56 -04:00
parent 79764cd549
commit 067e62ad5e
6 changed files with 83 additions and 57 deletions

View file

@ -130,11 +130,11 @@ func (cm *ChannelManager) Join(client *Client, name string, key string, isSajoin
}
channel.EnsureLoaded()
channel.Join(client, key, isSajoin, rb)
err = channel.Join(client, key, isSajoin, rb)
cm.maybeCleanup(channel, true)
return nil
return err
}
func (cm *ChannelManager) maybeCleanup(channel *Channel, afterJoin bool) {