diff --git a/client/connection.go b/client/connection.go index 596aeae..4fdd98f 100644 --- a/client/connection.go +++ b/client/connection.go @@ -376,13 +376,13 @@ func (conn *Conn) shutdown() { return } logging.Info("irc.shutdown(): Disconnected from server.") - conn.dispatch(&Line{Cmd: DISCONNECTED}) conn.connected = false conn.sock.Close() close(conn.die) conn.wg.Wait() // reinit datastructures ready for next connection conn.initialise() + conn.dispatch(&Line{Cmd: DISCONNECTED}) } // Dumps a load of information about the current state of the connection to a