stop issueing tor NEWNYM commands on errrors on open()

This commit is contained in:
Dan Ballard 2019-02-20 11:36:42 -08:00
parent 8db3c09fce
commit bf57db657a
1 changed files with 0 additions and 6 deletions

View File

@ -169,12 +169,6 @@ func (tp *torProvider) Open(hostname string) (net.Conn, string, error) {
}
conn, err := torDailer.Dial("tcp", resolvedHostname+".onion:9878")
// if there was an error, we may have been cycling too fast
// clear the tor cache and try one more time
if err != nil {
tp.t.Control.Signal("NEWNYM")
conn, err = torDailer.Dial("tcp", resolvedHostname+".onion:9878")
}
return conn, resolvedHostname, err
}