Skip to content
Permalink
Browse files

Fixes #63: OnionProxyManager.stop should null controlConnection even …

…if the socket fails to close.
  • Loading branch information...
sisbell committed Jan 28, 2019
1 parent bc26ca5 commit d8071138faa63130d6eeacb088ae87b96fae385e
@@ -250,11 +250,14 @@ public synchronized void stop() throws IOException {
controlConnection.shutdownTor("HALT");
eventBroadcaster.broadcastNotice("sending HALT signal to Tor process");
} finally {
controlConnection = null;
if (controlSocket != null) {
controlSocket.close();
try {
controlSocket.close();
} finally {
controlSocket = null;
}
}
controlConnection = null;
controlSocket = null;
}
}

0 comments on commit d807113

Please sign in to comment.
You can’t perform that action at this time.