Upgraded Tor to version 0.2.4.16-rc from Orbot version 12.0.5.

This commit is contained in:
akwizgran
2013-12-05 19:51:49 +00:00
parent d1e4631c55
commit 3b0d8ec477
2 changed files with 10 additions and 3 deletions

Binary file not shown.

View File

@@ -187,9 +187,16 @@ class TorPlugin implements DuplexPlugin, EventHandler {
// Create a shutdown hook to ensure the Tor process is killed
shutdownManager.addShutdownHook(new Runnable() {
public void run() {
if(LOG.isLoggable(INFO)) LOG.info("Killing Tor");
if(tor != null) tor.destroy();
if(pid != -1) android.os.Process.killProcess(pid);
if(tor != null) {
if(LOG.isLoggable(INFO))
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