mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 20:59:54 +01:00
Upgraded Tor to version 0.2.4.16-rc from Orbot version 12.0.5.
This commit is contained in:
Binary file not shown.
@@ -187,9 +187,16 @@ class TorPlugin implements DuplexPlugin, EventHandler {
|
|||||||
// Create a shutdown hook to ensure the Tor process is killed
|
// Create a shutdown hook to ensure the Tor process is killed
|
||||||
shutdownManager.addShutdownHook(new Runnable() {
|
shutdownManager.addShutdownHook(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
if(LOG.isLoggable(INFO)) LOG.info("Killing Tor");
|
if(tor != null) {
|
||||||
if(tor != null) tor.destroy();
|
if(LOG.isLoggable(INFO))
|
||||||
if(pid != -1) android.os.Process.killProcess(pid);
|
LOG.info("Killing Tor via destroy()");
|
||||||
|
tor.destroy();
|
||||||
|
}
|
||||||
|
if(pid != -1) {
|
||||||
|
if(LOG.isLoggable(INFO))
|
||||||
|
LOG.info("Killing Tor via killProcess(" + pid + ")");
|
||||||
|
android.os.Process.killProcess(pid);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// Open a control connection and authenticate using the cookie file
|
// Open a control connection and authenticate using the cookie file
|
||||||
|
|||||||
Reference in New Issue
Block a user