From ba196ecd0e780a2a1ca728ed982dec8c81294b5c Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Mon, 25 Jun 2018 21:47:21 -0700 Subject: [PATCH] Fixing err return bug --- connectivity/tor/tormanager.go | 3 +++ 1 file changed, 3 insertions(+) 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))