Remove select statement in irc.recv()
This commit is contained in:
parent
a68f5621bc
commit
a9031eb532
@ -173,13 +173,7 @@ func (c *Client) recv() {
|
||||
}
|
||||
|
||||
msg := parseMessage(line)
|
||||
|
||||
select {
|
||||
case <-c.quit:
|
||||
return
|
||||
|
||||
case c.Messages <- msg:
|
||||
}
|
||||
c.Messages <- msg
|
||||
|
||||
switch msg.Command {
|
||||
case Ping:
|
||||
|
Loading…
Reference in New Issue
Block a user