diff --git a/client/connection.go b/client/connection.go index f01b474..90b783f 100644 --- a/client/connection.go +++ b/client/connection.go @@ -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()