From 05dd3317f1d32d203949cd2b3617ac0894ef0879 Mon Sep 17 00:00:00 2001 From: Nathan Freitas Date: Mon, 11 Aug 2014 16:05:08 -0400 Subject: [PATCH] update to latest jtorctl with patches for thread, error handling --- external/jtorctl | 2 +- src/org/torproject/android/service/TorService.java | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/external/jtorctl b/external/jtorctl index 319377b3..9f8affff 160000 --- a/external/jtorctl +++ b/external/jtorctl @@ -1 +1 @@ -Subproject commit 319377b33117035155715b9207a7b41cbacef3a7 +Subproject commit 9f8affffbb03737b5606212c3ade9a1114df755f diff --git a/src/org/torproject/android/service/TorService.java b/src/org/torproject/android/service/TorService.java index 2736fbe4..46d37a13 100644 --- a/src/org/torproject/android/service/TorService.java +++ b/src/org/torproject/android/service/TorService.java @@ -1020,7 +1020,10 @@ public class TorService extends Service implements TorServiceConstants, TorConst torConnSocket = new Socket(IP_LOCALHOST, controlPort); torConnSocket.setSoTimeout(CONTROL_SOCKET_TIMEOUT); - conn = TorControlConnection.getConnection(torConnSocket); + boolean oo = true; + + conn = new TorControlConnection(torConnSocket); + conn.launchThread(true);//is daemon logNotice( "SUCCESS connected to Tor control port");