Impolite to break the 'IRC event provides Conn, Line' contract.

This commit is contained in:
Alex Bramley 2011-07-30 19:34:55 +01:00
parent bb703cc945
commit 9c94b0b3e0
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ func (conn *Conn) shutdown() {
conn.sock.Close() conn.sock.Close()
conn.cSend <- true conn.cSend <- true
conn.cLoop <- true conn.cLoop <- true
conn.Dispatcher.Dispatch("disconnected", conn, nil) conn.Dispatcher.Dispatch("disconnected", conn, &Line{})
// reinit datastructures ready for next connection // reinit datastructures ready for next connection
// do this here rather than after runLoop()'s for due to race // do this here rather than after runLoop()'s for due to race
conn.initialise() conn.initialise()