stop issuing newnym on open() #66

Merged
sarah merged 1 commits from dan/libricochet-go:nonewnym into master 2019-02-20 19:45:31 +00:00
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
}