more race conditions

This commit is contained in:
Jeremy Latt
2014-02-14 09:00:49 -08:00
parent 72a90d5544
commit 29df88fb7a
+3
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)