1
0
Fork 0
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:
Alex Bramley 2011-07-27 21:10:37 +01:00
parent 5e814babc7
commit 33a5bff35b
3 changed files with 27 additions and 31 deletions

View file

@ -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