3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00

more race conditions

This commit is contained in:
Jeremy Latt 2014-02-14 09:00:49 -08:00
parent 72a90d5544
commit 29df88fb7a

View File

@ -164,7 +164,10 @@ func (channel *Channel) ModeString() (str string) {
}
func (channel *Channel) Join(client *Client) {
channel.mutex.Lock()
channel.members.Add(client)
channel.mutex.Unlock()
client.channels.Add(channel)
reply := RplJoin(client, channel)
client.Reply(reply)