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:
parent
72a90d5544
commit
29df88fb7a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user