From 0a9c72d9929b8a020fb8342017bebc300b52f55f Mon Sep 17 00:00:00 2001 From: Liam Stanley Date: Thu, 19 Jan 2017 01:56:30 -0500 Subject: [PATCH] send cap request as early as possible --- client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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