mirror of
https://github.com/fluffle/goirc
synced 2025-05-13 11:03:19 +00:00
Move line parsing done in dispatchEvent into ParseLine().
This commit is contained in:
parent
5e814babc7
commit
33a5bff35b
3 changed files with 27 additions and 31 deletions
|
@ -208,7 +208,9 @@ func (conn *Conn) runLoop() {
|
|||
for {
|
||||
select {
|
||||
case line := <-conn.in:
|
||||
conn.dispatchEvent(line)
|
||||
if line != nil {
|
||||
conn.dispatchEvent(line)
|
||||
}
|
||||
case <-conn.cLoop:
|
||||
// strobe on control channel, bail out
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue