don't close socket, and use HALT for shutdown

This commit is contained in:
Nathan Freitas 2014-07-10 11:04:21 -04:00
parent f9b38e6379
commit 8a934c9cab
1 changed files with 4 additions and 4 deletions

View File

@ -452,11 +452,11 @@ public class TorService extends Service implements TorServiceConstants, TorConst
try { try {
logNotice("sending SHUTDOWN signal to Tor process"); logNotice("sending HALT signal to Tor process");
conn.shutdownTor("SHUTDOWN"); conn.shutdownTor("HALT");
logNotice("closing tor socket"); //logNotice("closing tor socket");
torConnSocket.close(); // torConnSocket.close();
} catch (Exception e) { } catch (Exception e) {
Log.d(TAG,"error shutting down Tor via connection",e); Log.d(TAG,"error shutting down Tor via connection",e);