From 3fdd17a2b88b167b0a9ae6d219375bc47cc91f04 Mon Sep 17 00:00:00 2001 From: Peter SZTANOJEV Date: Sat, 31 May 2014 20:34:21 +0200 Subject: [PATCH] move the disconnection event after we are done disconnecting, there is nothing to be done anyway --- client/connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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