1
0
Fork 0
forked from External/ergo

fix data race on exitedSnomaskSent

This commit is contained in:
Shivaram Lingamneni 2019-05-27 14:33:59 -04:00
parent 1a7169d75d
commit 5ac7ea5b1c
3 changed files with 11 additions and 4 deletions

View file

@ -187,6 +187,12 @@ func (client *Client) SetAway(away bool, awayMessage string) (changed bool) {
return
}
func (client *Client) SetExitedSnomaskSent() {
client.stateMutex.Lock()
client.exitedSnomaskSent = true
client.stateMutex.Unlock()
}
// uniqueIdentifiers returns the strings for which the server enforces per-client
// uniqueness/ownership; no two clients can have colliding casefolded nicks or
// skeletons.