mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
fix data race on exitedSnomaskSent
This commit is contained in:
parent
1a7169d75d
commit
5ac7ea5b1c
3 changed files with 11 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue