mirror of https://github.com/fluffle/goirc
Impolite to break the 'IRC event provides Conn, Line' contract.
This commit is contained in:
parent
4994263773
commit
1d82af0080
|
@ -266,7 +266,7 @@ func (conn *Conn) shutdown() {
|
|||
conn.sock.Close()
|
||||
conn.cSend <- true
|
||||
conn.cLoop <- true
|
||||
conn.Dispatcher.Dispatch("disconnected", conn, nil)
|
||||
conn.Dispatcher.Dispatch("disconnected", conn, &Line{})
|
||||
// reinit datastructures ready for next connection
|
||||
// do this here rather than after runLoop()'s for due to race
|
||||
conn.initialise()
|
||||
|
|
Loading…
Reference in New Issue