mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-31 23:22:38 +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) {
|
func (channel *Channel) Join(client *Client) {
|
||||||
|
channel.mutex.Lock()
|
||||||
channel.members.Add(client)
|
channel.members.Add(client)
|
||||||
|
channel.mutex.Unlock()
|
||||||
|
|
||||||
client.channels.Add(channel)
|
client.channels.Add(channel)
|
||||||
reply := RplJoin(client, channel)
|
reply := RplJoin(client, channel)
|
||||||
client.Reply(reply)
|
client.Reply(reply)
|
||||||
|
Loading…
Reference in New Issue
Block a user