1
0
Fork 0
mirror of https://github.com/fluffle/goirc synced 2025-05-13 11:03:19 +00:00

Break out unboxing code; pass conn/line objects for other events.

This commit is contained in:
Alex Bramley 2011-07-28 00:24:07 +01:00
parent 8e6de2f3c7
commit 303d3724e2
2 changed files with 9 additions and 5 deletions

View file

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