mirror of https://github.com/fluffle/goirc
Impolite to break the 'IRC event provides Conn, Line' contract.
This commit is contained in:
parent
bb703cc945
commit
9c94b0b3e0
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue