diff --git a/connectivity/tor/tormanager.go b/connectivity/tor/tormanager.go index 04bb85e..c62fcc3 100644 --- a/connectivity/tor/tormanager.go +++ b/connectivity/tor/tormanager.go @@ -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))