diff --git a/socket/net/client/connector.go b/socket/net/client/connector.go index 108f04b..7740eb8 100644 --- a/socket/net/client/connector.go +++ b/socket/net/client/connector.go @@ -42,10 +42,6 @@ func (c *Connectors) Connect() (readChan <-chan []byte, writeChan chan<- []byte, return nil, nil, fmt.Errorf("%s already connected", c.logHeader()) } - if err := c.Validate(); nil != err { - return nil, nil, err - } - conn, err = c.connect() if nil != err { return nil, nil, err diff --git a/socket/web/client/connector.go b/socket/web/client/connector.go index 7a48bd7..a1b2162 100644 --- a/socket/web/client/connector.go +++ b/socket/web/client/connector.go @@ -73,9 +73,6 @@ func (c *Connectors) Connect() (readChan <-chan []byte, writeChan chan<- []byte, if c.stopChan != nil { return nil, nil, fmt.Errorf("%s already connected", c.logHeader()) } - if err := c.Validate(); nil != err { - return nil, nil, err - } conn, res, err = c.connect() if nil != err {