[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [sandboxed-tor-browser/master] Shutdown the old tor prior to installing the update.
commit 9a621397c46cbbc96bec85e129e53efb3521a1c1
Author: Yawning Angel <yawning@xxxxxxxxxxxxxxx>
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.")
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits