[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [sandboxed-tor-browser/master] Remove the old `control_port` file before launcing a tor.



commit 0ba177e4136ea2459741a5de283d6ada6c3b8d63
Author: Yawning Angel <yawning@xxxxxxxxxxxxxxx>
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 {

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits