forked from cwtch.im/cwtch
Fixing err return bug
This commit is contained in:
parent
ea2e7caf5c
commit
ba196ecd0e
|
@ -88,6 +88,9 @@ func (tm *Manager) TestConnection() error {
|
|||
if c != nil {
|
||||
c.Close()
|
||||
}
|
||||
if err == nil {
|
||||
return nil
|
||||
}
|
||||
return fmt.Errorf("could not connect to Tor Control Port %v %v", tm.controlPort, err)
|
||||
}
|
||||
return errors.New(proxyStatusMessage(proxyStatus))
|
||||
|
|
Loading…
Reference in New Issue