forked from External/ergo
fix #1941
KLINE'd clients would produce a QUIT snotice without a corresponding CONNECT snotice; explicitly suppress the QUIT snotice.
This commit is contained in:
parent
dea2e7961a
commit
077081076c
3 changed files with 14 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue