diff --git a/client.go b/client.go index 8d244fc..026cff4 100644 --- a/client.go +++ b/client.go @@ -235,9 +235,6 @@ func (c *Client) Connect() error { } } - // Start read loop to process messages from the server. - go c.readLoop() - // List the IRCv3 capabilities, specifically with the max protocol we // support. if !c.Config.DisableTracking && !c.Config.DisableCapTracking { @@ -246,6 +243,9 @@ func (c *Client) Connect() error { } } + // Start read loop to process messages from the server. + go c.readLoop() + // Consider the connection a success at this point. c.tries = 0