Remove select statement in irc.recv()
This commit is contained in:
parent
a68f5621bc
commit
a9031eb532
1 changed files with 1 additions and 7 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue