[tor-commits] [sandboxed-tor-browser/master] Remove the old `control_port` file before launcing a tor.
yawning at torproject.org
yawning at torproject.org
Mon Nov 28 02:38:50 UTC 2016
commit 0ba177e4136ea2459741a5de283d6ada6c3b8d63
Author: Yawning Angel <yawning at schwanenlied.me>
Date: Mon Nov 28 02:38:22 2016 +0000
Remove the old `control_port` file before launcing a tor.
---
src/cmd/sandboxed-tor-browser/internal/ui/ui.go | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/cmd/sandboxed-tor-browser/internal/ui/ui.go b/src/cmd/sandboxed-tor-browser/internal/ui/ui.go
index b25e397..80588de 100644
--- a/src/cmd/sandboxed-tor-browser/internal/ui/ui.go
+++ b/src/cmd/sandboxed-tor-browser/internal/ui/ui.go
@@ -279,6 +279,8 @@ func (c *Common) launchTor(async *Async, onlySystem bool) (dialFunc, error) {
return nil, err
}
+ os.Remove(filepath.Join(c.Cfg.TorDataDir, "control_port"))
+
async.UpdateProgress("Launching Tor executable.")
cmd, err := sandbox.RunTor(c.Cfg, torrc)
if err != nil {
More information about the tor-commits
mailing list