From 8df98f561864a3bfe0df1dfae1dc12e1f5dc4f97 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");