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:
parent
8e6de2f3c7
commit
303d3724e2
2 changed files with 9 additions and 5 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue