don't close socket, and use HALT for shutdown
This commit is contained in:
parent
f9b38e6379
commit
8a934c9cab
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue