Use a shutdown hook to kill the Tor process if the plugin isn't stopped.

This commit is contained in:
akwizgran
2013-04-25 15:21:59 +01:00
parent 1f8c9cc977
commit 6f206bf270
3 changed files with 20 additions and 6 deletions

View File

@@ -62,7 +62,7 @@ public class AndroidModule extends AbstractModule {
pluginExecutor, androidExecutor, appContext,
crypto.getSecureRandom());
DuplexPluginFactory tor = new TorPluginFactory(pluginExecutor,
appContext);
appContext, shutdownManager);
DuplexPluginFactory lan = new LanTcpPluginFactory(pluginExecutor);
DuplexPluginFactory wan = new WanTcpPluginFactory(pluginExecutor,
shutdownManager);