[tor-commits] [sandboxed-tor-browser/master] Shutdown the old tor prior to installing the update.
yawning at torproject.org
yawning at torproject.org
Fri Dec 2 06:53:58 UTC 2016
commit 9a621397c46cbbc96bec85e129e53efb3521a1c1
Author: Yawning Angel <yawning at schwanenlied.me>
Date: Fri Dec 2 06:50:45 2016 +0000
Shutdown the old tor prior to installing the update.
---
src/cmd/sandboxed-tor-browser/internal/ui/install.go | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/cmd/sandboxed-tor-browser/internal/ui/install.go b/src/cmd/sandboxed-tor-browser/internal/ui/install.go
index e8858b4..2ab7464 100644
--- a/src/cmd/sandboxed-tor-browser/internal/ui/install.go
+++ b/src/cmd/sandboxed-tor-browser/internal/ui/install.go
@@ -272,6 +272,13 @@ func (c *Common) doUpdate(async *Async, dialFn dialFunc) {
return
}
+ // Shutdown the old tor now.
+ if c.tor != nil {
+ log.Printf("update: Shutting down old tor.")
+ c.tor.Shutdown()
+ c.tor = nil
+ }
+
// Apply the update.
log.Printf("update: Updating Tor Browser.")
async.UpdateProgress("Updating Tor Browser.")
More information about the tor-commits
mailing list