Allow Custom Tor Config in TorRCBuilder + ProxyACN and ErrorACN #25

Merged
erinn merged 10 commits from custom_tor_config into master 2022-01-12 20:16:42 +00:00
1 changed files with 9 additions and 7 deletions
Showing only changes of commit 023d1a6e5d - Show all commits

View File

@ -297,13 +297,15 @@ func (tp *torProvider) Close() {
delete(tp.childListeners, addr)
}
// Break out of any background checks and close
// the underlying tor connection
tp.isClosed = true
tp.breakChan <- true
if tp.t != nil {
tp.t.Close()
tp.t = nil
if !tp.isClosed {
// Break out of any background checks and close
// the underlying tor connection
tp.isClosed = true
tp.breakChan <- true
if tp.t != nil {
tp.t.Close()
tp.t = nil
}
}
}