1
0
Fork 0
forked from External/ergo
KLINE'd clients would produce a QUIT snotice without a corresponding
CONNECT snotice; explicitly suppress the QUIT snotice.
This commit is contained in:
Shivaram Lingamneni 2022-05-03 12:46:12 -04:00
parent dea2e7961a
commit 077081076c
3 changed files with 14 additions and 2 deletions

View file

@ -550,6 +550,12 @@ func (client *Client) shouldFlushTimestamps() (result bool) {
return
}
func (client *Client) setKlined() {
client.stateMutex.Lock()
client.isKlined = true
client.stateMutex.Unlock()
}
func (channel *Channel) Name() string {
channel.stateMutex.RLock()
defer channel.stateMutex.RUnlock()