ing
This commit is contained in:
parent
0588a0ffb5
commit
490aaae260
|
@ -42,10 +42,6 @@ func (c *Connectors) Connect() (readChan <-chan []byte, writeChan chan<- []byte,
|
||||||
return nil, nil, fmt.Errorf("%s already connected", c.logHeader())
|
return nil, nil, fmt.Errorf("%s already connected", c.logHeader())
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := c.Validate(); nil != err {
|
|
||||||
return nil, nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
conn, err = c.connect()
|
conn, err = c.connect()
|
||||||
if nil != err {
|
if nil != err {
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
|
|
|
@ -73,9 +73,6 @@ func (c *Connectors) Connect() (readChan <-chan []byte, writeChan chan<- []byte,
|
||||||
if c.stopChan != nil {
|
if c.stopChan != nil {
|
||||||
return nil, nil, fmt.Errorf("%s already connected", c.logHeader())
|
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()
|
conn, res, err = c.connect()
|
||||||
if nil != err {
|
if nil != err {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user